>What is the best way for me to in fact validate the stream of
>SAX events against an XML Schema while processing those same
>SAX events to perform a transformation?

Validation is currently a Xerces issue; take this question back to that 
list. (There ways to persuade Xerces to "revalidate" a document. They 
involve working with the XNI APIs and are moderately ugly. Unless you 
really want to deal with that level of detail and nonportability, I would 
suggest you serialize to XML syntax and reparse. They may have better 
suggestions.)

XSLT 2.0 *MAY* introduce the concept of  validation of selected subtrees. 
(There's been debate over whether that feature belongs in XSLT, XQuery, 
both or neither.) If and when that's accepted as part of the spec, Xalan 
will have to learn how to work with Xerces to do this. There is a 
prototype of that code on the xslt20 branch. It's moderately ugly, highly 
experimental, hasn't been tested in a very long time... basically, I don't 
really recommend it; caveat hackitor. Its greatest value may be as a code 
example if you really do need to attempt this.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. 
"may'ron DaroQbe'chugh vaj bIrIQbej"  ("Put down the squeezebox and nobody 
gets hurt.")

Reply via email to