From: Elliotte Rusty Harold <elharo@me...> - 2002-10-29 17:01:32
I've noticed that when I access Saxon through TrAX's SAXResult, using a
ContentHandler of my own device, and apply a stylesheet which generates
rootless XML output, (e.g. 20 h2 elements),
that Saxon fails to call endElement() for all but the first such
element. Using Xalan 2.4.0 in the same program, and changing nothing
more than the call to System.setProperty() that selects the TrAX engine
to use, the program works as expected and endElement is called where it
The same stylesheet gives correct output when I run it from the command
line with java com.icl.saxon.StyleSheet. It's only when I access it
through TrAX with a SAXResult that I notice a problem.
The program runs correctly when I use a stylesheet whose output is a
rooted, well-formed XML document.
Right now the program I'm using is quite complex and the documents are
large, so I don't have a very good test case. (At least the style sheet
is simple.) I could possibly whittle this down to a smaller,
self-contained test case, but before I spend the time doing that I'd
like to know if this is a known bug? Or if it sounds at all plausible?
has anyone else encountered this behavior? Has Saxon's TrAX been tested
with SAXResult on rootless output documents yet?
Elliotte Rusty Harold