Re: Re: ErrorHandler questions

Karl Waclawek <[email protected]> Mon, 10 Jan 2005 19:34:54 -0500
Newsgroups gmane.text.xml.sax.devel
Message-ID <[email protected]>

Karl Waclawek wrote:
> Karl Waclawek wrote:
> 
>> Let's consider the case of validation layered on top of a non-validating
>> SAX parser. This has to be done through that layer's content handler.
>> But currently there is no standardized way for the validator to generate
>> ErrorHandler call-backs, since SAX does not provide for a getter/setter
>> (property) to pass a reference to the error handler.
> 
> 
> Correction: Unless the validator is implemented as XMLFilter.

And one more comment:

Even a validator implemented as XMLFilter requires reporting
validation errors by calling the ErrorHandler interface from
a ContentHandler implementation.

Therefore it looks to me that it is implicitly legal to call
ErrorHandler methods from a ContentHandler.

Karl


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
List: sax-devel, [email protected]
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel