[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Michael Kay wrote:
probibly version 1.4 but I will doublecheck this shortly.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] Catching Parser/Transformer Exceptions Xerces and Saxon
Subject: Re: [xsl] Catching Parser/Transformer Exceptions Xerces and Saxon From: "Mark R. Diggory" <mdiggory@xxxxxxxxxxxxxxxxx> Date: Thu, 08 Aug 2002 10:14:49 -0400 |
Michael Kay wrote:
If there's a parsing error, then the TransformerException thrown byHmmm, This may be a bug then, because I am not getting the encapsulated SAX Exception. I am working with tomcat 4.0.3's default Xerces version. I think it is
Saxon will encapsulate the SAXException thrown by the XML parser - you
can get it by calling getException().
* xerces.jar - The Xerces 1.x XML parser (also includes the JAXP 1.1 interfaces).
probibly version 1.4 but I will doublecheck this shortly.
Yes, I think I will try this in my code.But it may be better to set up an ErrorHandler associated with the XML parser, so you are informed of XML parsing errors directly.
thanks, Mark Diggory
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mark R. Diggory
Sent: 07 August 2002 22:08
To: xsl-list
Subject: [xsl] Catching Parser/Transformer Exceptions Xerces and Saxon
Hi All,
I've been playing around with putting Xerces infront of Saxon and trying use it's validating features to validate the xml prior to transform. However, the javax.xml.transform.TransformerException coming out of Saxon doesn't seem to retain any information about the parsing exception that occured in Xerces. Is there a feature or something in Saxon or Xerces that I am missing? I'm using the JAXP interfaces and I'm setting up an XMLReader as the source for the XML being transformed by Transformer. I'd like to be able to tell if the document was invalid vs. other problems that could occur in the parser.
-Mark Diggory Harvard MIT Data Center
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Catching Parser/Transform, Michael Kay | Thread | [xsl] Re: attribute closest match, Dimitre Novatchev |
[xsl] XPath question, Emmanuel Oviosa | Date | RE: [xsl] Unicity, Michael Kay |
Month |
Keywords