You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by th...@ascentialsoftware.com on 2002/11/22 19:45:22 UTC

SAX ErrorHandler errors

If I define a SAX ErrorHandler to be used for my XSLT transformation
(XSLTTransformer.setErrorHandler), I can trap 3 different kinds of errors:
fatal, error and warning.
Is there a documentation somewhere of what is a fatal, error or warning?
A couple of examples to illustrate what I am looking for:

	- if I turn the XML validation on, what validation problems will be
mapped to a fatal, error and warning?
	- If any "problems" in the XSLT stylesheet, which ones are fatal,
error or warning?

If this is not documented or specified clearly somewhere, any patterns that
I can look through the code to build my own list from the source code?

Thanks.

Thomas


Re: SAX ErrorHandler errors

Posted by David N Bertoni/Cambridge/IBM <da...@us.ibm.com>.



Hi Thomas,

I would either consult the documentation for SAX, or ask the question on
the Xerces-C dev list.  Fatal errors are usually un-recoverable, and are
related to problems with documents that are not well-formed.  Errors are
always validation errors.  I'm not sure what warnings are, and the SAX
documentation is not very specific:

http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html

Hope that helps!

Dave



                                                                                                                                                
                      thomas.cherel@ascentials                                                                                                  
                      oftware.com                      To:      xalan-c-users@xml.apache.org                                                    
                                                       cc:      (bcc: David N Bertoni/Cambridge/IBM)                                            
                      11/22/2002 10:45 AM              Subject: SAX ErrorHandler errors                                                         
                                                                                                                                                






If I define a SAX ErrorHandler to be used for my XSLT transformation
(XSLTTransformer.setErrorHandler), I can trap 3 different kinds of errors:
fatal, error and warning.


Is there a documentation somewhere of what is a fatal, error or warning?
A couple of examples to illustrate what I am looking for:


        - if I turn the XML validation on, what validation problems will be
mapped to a fatal, error and warning?
        - If any "problems" in the XSLT stylesheet, which ones are fatal,
error or warning?


If this is not documented or specified clearly somewhere, any patterns that
I can look through the code to build my own list from the source code?


Thanks.


Thomas