xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] XOM + XInclude + XSLT Transform + EntityResolver
- From: Michael Kay <mike AT saxonica.com>
- To: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] XOM + XInclude + XSLT Transform + EntityResolver
- Date: Wed, 16 Jun 2010 11:39:48 +0100
The fact that it's a ParsingException is a pretty good clue that there's something wrong with the XML, and the fact that it's on line
MyXomTest.java:39
should tell you whether it's complaining about the source document or the stylesheet. (I can't tell myself, because the mailer has reformatted the Java code).
"Pseudo attributes" generally occur in processing instructions or the like, and peering at the XML more closely reveals
<?xml version='1.0'>
which should be
<?xml version='1.0'?>
There's a lot of information in the diagnostics for this kind of problem; it's worth learning to read them, and it's certainly worth posting them if you want help understanding what's gone wrong.
Michael Kay
Saxonica
On 16/06/2010 10:56, Thomas LEDUC wrote:
Michael Kay a écrit :
Dear Michael,What should I do to solve my bug ?Examine the stack trace. If you don't understand it, post it here, where
there's a good chance that someone will.
Michael Kay
Saxonica
Thanks for your answer. Is the following trace the right one ?
[Fatal Error] :1:20: A pseudo attribute name is expected.
Exception in thread "main" nu.xom.ParsingException: A pseudo attribute
name is expected. at line 1, column 20
at nu.xom.Builder.build(Unknown Source)
at nu.xom.Builder.build(Unknown Source)
at org.solenetb.engine.MyXomTest.main(MyXomTest.java:39)
Caused by: org.xml.sax.SAXParseException: A pseudo attribute name is
expected.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
... 3 more
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
[XOM-interest] XOM + XInclude + XSLT Transform + EntityResolver,
Thomas LEDUC, 06/15/2010
-
Re: [XOM-interest] XOM + XInclude + XSLT Transform + EntityResolver,
Michael Kay, 06/15/2010
-
Re: [XOM-interest] XOM + XInclude + XSLT Transform + EntityResolver,
Thomas LEDUC, 06/16/2010
-
Re: [XOM-interest] XOM + XInclude + XSLT Transform + EntityResolver,
Michael Kay, 06/16/2010
- Re: [XOM-interest] XOM + XInclude + XSLT Transform + EntityResolver, Thomas LEDUC, 06/16/2010
-
Re: [XOM-interest] XOM + XInclude + XSLT Transform + EntityResolver,
Michael Kay, 06/16/2010
-
Re: [XOM-interest] XOM + XInclude + XSLT Transform + EntityResolver,
Thomas LEDUC, 06/16/2010
-
Re: [XOM-interest] XOM + XInclude + XSLT Transform + EntityResolver,
Michael Kay, 06/15/2010
Archive powered by MHonArc 2.6.24.