>That being the case, is there something to be done in the short term,
>or should I just settle for the DOM usage?

If you are starting from a DOM, performance will almost certainly be better
if you use DOMSource.

If you are starting from XML text, or from a SAX stream, performance will
almost certainly be better if you use SAXSource.  (When doing the
comparison, remember to allow for the time spent building the DOM, which
has overhead similar to that of building our internal model directly from
SAX.)

If starting from an in-memory model which isn't a DOM, you have your choice
of serializing it into SAX and using SAXSource, or wrapping a
DOM-compatable adapter around it and using DOMSource. That becomes a
difficult choice, and will depend on complexity of the document, amount of
text it contains,  exactly what data your particular stylesheet is
retrieving from the document, how efficient your adapter/serializer are,
...

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk

Reply via email to