Hi. 

I use Fop embedded in my app, and I'm trying to use Saxon-B 8.8 instead of
Xalan for transformation (my xsl's need it). The transformation code is
exactly like in the Fop examples, I just put the
-Djavax.xml.transform.TransformerFactory param to use Saxon. When i run the
transformation, i get the following error:

java.lang.IllegalStateException: FOTreeBuilder (and the Fop class) cannot be
reused. Please instantiate a new instance.
        at org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:146)
        at
net.sf.saxon.event.ContentHandlerProxy.open(ContentHandlerProxy.java:242)
        at net.sf.saxon.event.ProxyReceiver.open(ProxyReceiver.java:76)
        at
net.sf.saxon.event.ImplicitResultChecker.open(ImplicitResultChecker.java:24)
        at
net.sf.saxon.event.ImplicitResultChecker.firstContent(ImplicitResultChecker.java:59)
        at
net.sf.saxon.event.ImplicitResultChecker.startElement(ImplicitResultChecker.java:30)
        at
net.sf.saxon.event.NamespaceReducer.startElement(NamespaceReducer.java:54)
        at
net.sf.saxon.event.ComplexContentOutputter.startContent(ComplexContentOutputter.java:481)
        at
net.sf.saxon.event.ComplexContentOutputter.startElement(ComplexContentOutputter.java:153)
        at
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:243)
        at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:353)
        at net.sf.saxon.instruct.Instruction.process(Instruction.java:91)
        at
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:250)
        at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:99)
        at
net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:319)
        at
net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:351)
        at
net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:312)
        at net.sf.saxon.Controller.transformDocument(Controller.java:1602)
        at net.sf.saxon.Controller.transform(Controller.java:1426)
        at com.mind.utils.xsl.XSLTranformer.main(XSLTranformer.java:91)

Am I doing something wrong? or is it a problem in Fop, or Saxon?
Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Error-when-using-FOP-embedded-using-Saxon-for-transformation-tf2394067.html#a6675088
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to