xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Tremblay <paulhtremb...@gmail.com>
Subject Re: AW: Catalogs not working
Date Tue, 24 Jan 2012 02:27:13 GMT
Hi Georg,

I don't believe my stylesheets are at fault. Keep in mind that xsltproc 
processes the same stylesheets with no problem, reading from the same 
catalog.xml. I just tested the same stylesheets with xalan (the 
processor fop uses, I believe), and also had success.

Paul

On 1/23/12 2:11 AM, Georg Datterl wrote:
> Hi Paul,
>
> It's a safe bet FOP is right and you should listen to it: something might be wrong with
your XSLT stylesheet. Maybe docbook experts can tell you what exactly is wrong with your stylesheet,
but the error definitely happens before fop is involved.
>
> Regards,
>
> Georg Datterl
>
> ------ Kontakt ------
>
> Georg Datterl
>
> Geneon media solutions gmbh
> Gutenstetter Straße 8a
> 90449 Nürnberg
>
> HRB Nürnberg: 17193
> Geschäftsführer: Yong-Harry Steiert
>
> Tel.: 0911/36 78 88 - 26
> Fax: 0911/36 78 88 - 20
>
> www.geneon.de
>
> Weitere Mitglieder der Willmy MediaGroup:
>
> IRS Integrated Realization Services GmbH:www.irs-nbg.de
> Willmy PrintMedia GmbH:www.willmy.de
> Willmy Consult&  Content GmbH:www.willmycc.de
>
> -----Ursprüngliche Nachricht-----
> Von: Paul Tremblay [mailto:paulhtremblay@gmail.com]
> Gesendet: Sonntag, 22. Januar 2012 18:47
> An:fop-users@xmlgraphics.apache.org
> Betreff: Catalogs not working
>
> I can't get fop to work with a catalog for resolving URIs. I am using fop 1.0.
>
> java -version
> java version "1.6.0_29"
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527) Java HotSpot(TM) 64-Bit
Server VM (build 20.4-b02-402, mixed mode)
>
> FOP Version svn-trunk (1.0)
>
> I set "vebose" in my CatalogManager.properties to 5, and get the following message:
>
> Parse catalog: /Users/cejohnsonlouisville/Dropbox/report/xml/catalog.xml
> Loading catalog: catalog.xml
> Default BASE:
> file:////Users/cejohnsonlouisville/Dropbox/report/xml/catalog.xml
> uri: docbook.xsl
>
> file:///Users/cejohnsonlouisville/Documents/docbook-xsl-ns-1.76.1/fo/docbook.xsl
> URI: docbook.xsl
>
> file:/Users/cejohnsonlouisville/Documents/docbook-xsl-ns-1.76.1/fo/docbook.xsl
>
> The catalog is correct. For example, when I use xsltproc to process the same file, I
don't get an error message. However, when I use this command:
>
> fop -catalog  -xml report_official.xml -xsl docbook_official.xsl -pdf test.pdf
>
> I get the following error:
>
> file:///Users/cejohnsonlouisville/Dropbox/report/xml/docbook_official.xsl;
> Line #11; Column #37; Had IO Exception with stylesheet file: docbook.xslfile:///Users/cejohnsonlouisville/Dropbox/report/xml/docbook_official.xsl;
> Line #36; Column #45; javax.xml.transform.TransformerException:
> ElemTemplateElement error: object.id
> Jan 22, 2012 12:41:19 PM org.apache.fop.fo.FOTreeBuilder fatalError
> SEVERE: org.apache.fop.fo.ValidationException: Document is empty (something might be
wrong with your XSLT stylesheet).
> Jan 22, 2012 12:41:19 PM org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> javax.xml.transform.TransformerException:
> org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with
your XSLT stylesheet).
>       at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
>       at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
>       at org.apache.fop.cli.Main.startFOP(Main.java:177)
>       at org.apache.fop.cli.Main.main(Main.java:208)
> Caused by: javax.xml.transform.TransformerException:
> org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with
your XSLT stylesheet).
>       at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1430)
>       at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
>       at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
>       at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
>       at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
>       ... 3 more
> Caused by: org.apache.fop.fo.ValidationException: Document is empty (something might
be wrong with your XSLT stylesheet).
>       at
> org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
>       at
> org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
>       at
> org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175)
>       at $Proxy1.emptyDocument(Unknown Source)
>       at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:158)
>       at
> org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:181)
>       at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1378)
>       ... 7 more
>
> ---------
>
> javax.xml.transform.TransformerException:
> org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with
your XSLT stylesheet).
>       at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1430)
>       at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
>       at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
>       at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
>       at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
>       at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
>       at org.apache.fop.cli.Main.startFOP(Main.java:177)
>       at org.apache.fop.cli.Main.main(Main.java:208)
> Caused by: org.apache.fop.fo.ValidationException: Document is empty (something might
be wrong with your XSLT stylesheet).
>       at
> org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
>       at
> org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
>       at
> org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175)
>       at $Proxy1.emptyDocument(Unknown Source)
>       at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:158)
>       at
> org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:181)
>       at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1378)
>       ... 7 more
> ---------
> org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with
your XSLT stylesheet).
>       at
> org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
>       at
> org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
>       at
> org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175)
>       at $Proxy1.emptyDocument(Unknown Source)
>       at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:158)
>       at
> org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:181)
>       at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1378)
>       at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
>       at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
>       at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
>       at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
>       at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
>       at org.apache.fop.cli.Main.startFOP(Main.java:177)
>       at org.apache.fop.cli.Main.main(Main.java:208)
>
> [Note: FOP exceptions are certainly verbose!]
>
> Thanks
>
> Paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail:fop-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail:fop-users-help@xmlgraphics.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message