Santiago Pericas-Geertsen wrote:
>   JAXP 1.4/JDK 6.0 has a new package called javax.xml.transform.stax,
> in which you'll find a StAXSource class [1]. Note that internally
> Xalan/XSLTC build a document model (DTM) from SAX events, so there's a
> StAX -> SAX conversion when starting from a StAXSource. Thus,
> depending on the parsers in question, there may be no performance
> advantage in using a StAXSource.
FWIW, last time I tried (maybe six months ago, maybe 1 or 2 versions of
Xerces ago), I found absolutely no performance advantage to performing a
transform from a SAX source over doing so from a stream source.

Eric

Reply via email to