Here is example code I am referring to:
http://xml.apache.org/xalan-j/usagepatterns.html#sax
First, notice that everything that can be SAX-based is SAX-based in this code: both the input and the output.
Also, notice that a transformerHandler object is created off of “foo.xsl” and that transformerHandler is used to do a transformation from the SAX input to the SAX ContentHandler that creates the output.
I had understood that XSLT requires something like a DOM tree to be built in order for it to do its work.
So here is my question: I wonder if the transformerHandler is actually building something like a DOM tree behind the scenes? If it is, doesn’t that kind of defeat the purpose of trying so hard to stay in SAX-land?
Quoting from http://xml.apache.org/xalan-j/dtm.html
In other words, it doesn’t build a DOM tree but it builds an efficient structure that is specially suited to meet the needs of XSLT.