[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Catching Parser/Transformer Exceptions Xerces and

Subject: RE: Catching Parser/Transformer Exceptions Xerces and Saxon
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 7 Aug 2002 23:27:19 +0100
xerces transform
If there's a parsing error, then the TransformerException thrown by
Saxon will encapsulate the SAXException thrown by the XML parser - you
can get it by calling getException().

But it may be better to set up an ErrorHandler associated with the XML
parser, so you are informed of XML parsing errors directly.

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:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.