Re: James Clark releases new implementation of Schematron as part of Jing
Oliver Becker <[email protected]> Fri, 20 Jun 2003 16:09:01 +0200 (MEST)
| Newsgroups | gmane.text.xml.schematron |
|---|---|
| Message-ID | <[email protected]> |
James, [this is probably off-topic for Schematron, but anyway ...] > There's one really hairy part on the Java side, which stems from the > fact that JAXP XSLT interface wants to be in control of things (i.e. it > only provides a transform() method that accepts a SAX XMLReader for the > input and a SAX ContentHandler for the output). In the context of NRL, > NRL needs to be in control: it needs to get a ContentHandler into which > it can feed SAX events. JAXP offers as part of the javax.xml.transform.sax package the classes SAXTransformerFactory and TransformerHandler. A TransformerHandler is mainly the union of ContentHandler, DTDHandler, and LexicalHandler plus 4 additional methods. So, when your application gets a TransformerHandler object (from the factory) it can use it as a ContentHandler. The only thing to do is calling setResult() before. I'm sure you're able to manage this with the help of the API doc, but in case you encounter problems with this, simply contact me personally. Cheers, Oliver /-------------------------------------------------------------------\ | ob|do Dipl.Inf. Oliver Becker | | --+-- E-Mail: [email protected] | | op|qo WWW: http://www.informatik.hu-berlin.de/~obecker | \-------------------------------------------------------------------/ ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php