FW: Saxon error message: SXXP0003

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

FW: Saxon error message: SXXP0003

Octavian, Yuan (GILW)
-----Original Message-----
From: Octavian, Yuan (GILW)
Sent: 06 October 2005 12:08
To: 'Michael Kay'
Subject: RE: Saxon error message

Thank You Michael,
I try this one:

java -jar saxon8.jar -t test\myxslt2.xsl test\myxslt2.xsl >test\tab.xml

And it work! :)

And you're right, I should post it on sourceforge.net. I will forward this message into the mailing list.


-----Original Message-----
From: Michael Kay [mailto:[hidden email]]
Sent: 06 October 2005 11:29
To: Octavian, Yuan (GILW)
Subject: RE: Saxon error message

Firstly, please post any future Saxon support requests to the saxon-help mailing list or forum on sourceforge.net. This allows other users to see the response (and sometimes to provide it!).
As the message says, this is an error reported by the XML parser, which Saxon is simply passing on to the user. It generally means that there is something at the given URL, but it isn't a well-formed XML document. In fact, your description of the problem suggests that it isn't even meant to be an XML document. To read non-XML into a stylesheet, use the unparsed-text() function from within an XPath expression. You can either supply a dummy XML document as the input on the command line, or use the -it option to start execution at a named template, without a source document.
Michael Kay

From: Octavian, Yuan (GILW) [mailto:[hidden email]]
Sent: 06 October 2005 09:59
To: [hidden email]
Subject: [Norton AntiSpam] Saxon error message
Importance: High

Dear Michael,
I have visited:
and create mytab.txt and myxsl.xsl

I manage to follow:
and succeed on creating temp.html

but..., when I try to create XML from TSV (mytab.txt), I got error message:
(please see the bold text)

C:\Web\saxon>java -jar saxon8.jar -t test\mytab.txt test\myxslt2.xsl >test\tab.xml
Saxon 8.5.1 from Saxonica
Java version 1.4.2_04
Stylesheet compilation time: 1722 milliseconds
Processing file:/C:/Web/saxon/test/mytab.txt
Building tree for file:/C:/Web/saxon/test/mytab.txt using class net.sf.saxon.tinytree.TinyBuilder
Error on line 1 of file:/C:/Web/saxon/test/mytab.txt:
SXXP0003: Error reported by XML parser: Document root element is missing.
Transformation failed: Run-time errors were reported

Could you please let me know, what's wrong?

I'm working on Virtual Library Service project for CGIAR Centers (www.cgiar.org) and we need to convert several files into XML base on AGRIS Application Profle.

You're help we'll be very useful. Thank you in advance.