startDocument/endDocument for document fragments
Elliotte Harold <[email protected]> Sun, 25 Apr 2004 14:24:33 -0400
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <[email protected]> |
This is real issue that arises in JDOM's XSLT implementation. Consider SAX being used to parse document fragments; i.e. well-balanced trees that do not have root elements. Also consider it being used to create such a thing, especially as output from an XSLT transform via SAXResult. Should startDoument and endDocument be called or not? Oracle does not call them. Most other TrAX implementations do. I tried to get the JCP to fix this in their definition of TrAX, but it didn't happen. Would SAX like to attempt this? On this one, I do think it's reasonable to rule this as beyond the bounds of what SAX defines; i.e., SAX says nothing about what happens when the input to the ContentHandler is something other than a parser reaing a real XML document. However, if there is a clean ay this could be fixed, it might be worthwhile. -- Elliotte Rusty Harold ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ List: sax-devel, [email protected] See: http://www.saxproject.org/ https://lists.sourceforge.net/lists/listinfo/sax-devel