xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Tremblay <paulhtremb...@gmail.com>
Subject Catalogs not working
Date Sun, 22 Jan 2012 17:47:26 GMT
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.xsl
file:///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


Mime
View raw message