Sorry, without seeing the XML file I can't tell you why the XML parser is rejecting it.

And there are many possible reasons for different results from the command line and the application; the first thing to look at is whether the same XML parser is being used in both cases. See what happens if you use the Apache Xerces parser rather than the parser built into the JDK - Apache Xerces is much more reliable.

Michael Kay

On 05/11/2010 09:00, wrote:
Hello all

i am using saxon-b and i encounter the following error which i don't really understand the meaning. Does anyone know the root cause ?

Error on line 255 column 12 of IoHwAbstraction.sparc2xml:
  SXXP0003: Error reported by XML parser: XML document structures must start and end within
  the same entity.
Recoverable error on line 30 of Sparc2IoHwAbstraction.xsl:
  FODC0002: org.xml.sax.SAXParseException: XML document structures must start and end within
  the same entity.

when i run this xsl via saxon-b call from a command line it works fine,
C:\DATA\ts_mirr\xml\jre1.5.0\bin\java -jar C:\DATA\ts_mirr\xml\Saxon-B\saxon9.jar -s:C:\DATA\uid30399\SparcUi\test\io_sparc\io_sparc.xml -xsl:C:\DATA\uid30399\SparcUi\test\xsl\Sparc2Xml\Sparc2IoHwAbstraction.xsl -o:C:\DATA\uid30399\SparcUi\test\io_sparc\out.xml  projectfile="C:/DATA/uid30399/SparcUi/test/io_model_transformation.xml"

when i run the same xsl from my java application which run saxon-b then i get this error

thank you for your help
------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now!
_______________________________________________ saxon-help mailing list archived at