Project

Profile

Help

result-document works but not from code

Added by Anonymous over 19 years ago

Legacy ID: #3008049 Legacy Poster: Roger I Martin (martin3)

Using the NURBS target in http://cvs.sourceforge.net/viewcvs.py/mathml-x/mathml-x/examples/fea/build.xml?view=markup the result-document in http://cvs.sourceforge.net/viewcvs.py/mathml-x/mathml-x/stylesheets/mathml2BeanInfo.xsl?view=markup (called from http://cvs.sourceforge.net/viewcvs.py/mathml-x/mathml-x/stylesheets/mathml2Java.xsl?view=markup as the bean-info template) works perfectly. When attempted from code http://cvs.sourceforge.net/viewcvs.py/mathml-x/mathml-x/examples/fea/src/com/neuralworks/fea/Main.java?view=markup the following error occurs: Error The system identifier of the principal output file is unknown Exception in thread "main" net.sf.saxon.xpath.DynamicError: The system identifie r of the principal output file is unknown at net.sf.saxon.event.StandardOutputResolver.resolve(StandardOutputResol ver.java:58) at net.sf.saxon.instruct.ResultDocument.processLeavingTail(ResultDocumen t.java:214) at net.sf.saxon.instruct.Template.expand(Template.java:98) at net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:181) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:215) at net.sf.saxon.instruct.Instruction.process(Instruction.java:90) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.expr.AppendExpression.process(AppendExpression.java:159) at net.sf.saxon.instruct.Template.expand(Template.java:100) at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:82) at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.ja va:287) at net.sf.saxon.Controller.transformDocument(Controller.java:1120) at net.sf.saxon.Controller.transform(Controller.java:964) at com.pombi.mathml.util.Operation.transform(Operation.java:89) at com.neuralworks.fea.Main.main(Main.java:100) --------- The system identifier of the principal output file is unknown? It seems to lose the StreamResult file. I'm running Java 5 and have tried saxon 8.2 and saxon 8.3. When the beanInfo parameter is set false the result-document doesn't happen and the rest of the transform performs perfectly.


Replies (4)

Please register to reply

RE: result-document works but not from code - Added by Anonymous over 19 years ago

Legacy ID: #3008060 Legacy Poster: Roger I Martin (martin3)

Let me set my example xml input ParametricNURBSSurface at http://cvs.sourceforge.net/viewcvs.py/mathml-x/mathml-x/examples/fea/xml/ParametricNURBSSurface.xml?view=markup to use the online mathml 2.0 dtd. When it comes thru the system I'll post again. -Roger

RE: result-document works but not from code - Added by Anonymous over 19 years ago

Legacy ID: #3008094 Legacy Poster: Roger I Martin (martin3)

The previous message concerning URI error looks like what I need to do also. Do the toURI().toString(). I'll test and post results.

RE: result-document works but not from code - Added by Anonymous over 19 years ago

Legacy ID: #3008121 Legacy Poster: Michael Kay (mhkay)

This error typically means that you've supplied the output as a Result object whose getSystemId() returns null. This will be true, for example if the result is created using Result result = new StreamResult(System.out) Michael Kay

RE: result-document works but not from code - Added by Anonymous over 19 years ago

Legacy ID: #3008204 Legacy Poster: Roger I Martin (martin3)

That works! Note I wasn't even setting the systemId on the StreamResult. Learned something new. Thanks for XSLT 2.0 and Saxon. The result-document allows one xslt and reuse of defined keys for two operations on a mathml document; The class and it's BeanInfo. Now I don't need to start up the engine twice and can rip thru many equations at useful runtime speeds!

    (1-4/4)

    Please register to reply