Re: Error when using FOP embedded using Saxon for transformation
Yes, that fixes it. On 08.10.2006 12:03:40 Florent Georges wrote: > Jeremias Maerki wrote: > > Hi > > > Seems to be a problem in Saxon. When I last tested with Saxon > > 8.7.1, everything was fine. But I downloaded 8.8 and I can now > > reproduce your problem. So it's a regression in Saxon. The SAX > > startDocument() method is somehow called twice although it must > > not be. > > BTW, Mike "released" a snapshot of the SVN repository on the > 29th of September. Maybe this fix the problem? See: > > http://sourceforge.net/mailarchive/message.php?msg_id=36968233 Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when using FOP embedded using Saxon for transformation
Jeremias Maerki wrote: Hi > Seems to be a problem in Saxon. When I last tested with Saxon > 8.7.1, everything was fine. But I downloaded 8.8 and I can now > reproduce your problem. So it's a regression in Saxon. The SAX > startDocument() method is somehow called twice although it must > not be. BTW, Mike "released" a snapshot of the SVN repository on the 29th of September. Maybe this fix the problem? See: http://sourceforge.net/mailarchive/message.php?msg_id=36968233 Regards, --drkm ___ Découvrez un nouveau moyen de poser toutes vos questions quel que soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when using FOP embedded using Saxon for transformation
Seems to be a problem in Saxon. When I last tested with Saxon 8.7.1, everything was fine. But I downloaded 8.8 and I can now reproduce your problem. So it's a regression in Saxon. The SAX startDocument() method is somehow called twice although it must not be. On 06.10.2006 10:28:30 vlad_faca wrote: > > 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. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error when using FOP embedded using Saxon for transformation
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]