Altova Mailing List Archives

DOM object to input source for XT and SAXON : reaults report

From: Sebastien Sahuc <ssahuc@-------------->
Date: 8/27/1999 7:38:00 PM
I'm experimenting strange behaviours while injecting DOM object to XSL
Processor :
With both processor (XT and Saxon ), two methods are used to perform
the XSL processing :
        - Method 1 - DOM object is (kind of) 'serialized' into byte[]
to  build an InputSource.
        - Method 2 - the DOMParser (from John Cowan) is used and
regitered as is in the XSLProcessor.

For the details on implementation, see previous discussions around the
same subject in this list.

Results are as follows :
! Method #           ! XT    ! SAXON !
! Serializing method ! 160ms ! 350ms !
! DOMParser          ! 250ms ! 290ms !

The absolute time isn't important, what's significant is the relative
performance : XT and SAXON don't even follow the same logic... I
really don't understand.

I'm ready to share the source if someone want it.


> -----Original Message-----
> From: Kay Michael [mailto:Michael.Kay@xxxxxxx]
> Sent: vendredi 27 ao&ucirc;t 1999 10:59
> To: 'xsl-list@xxxxxxxxxxxxxxxx'
> Subject: RE: Converting Document object (DOM) into inputsource for
> pro cessing in XT
> > 
> >   You could write a "DOM to SAX tree walker", i.e. a class
> > that implements org.xml.sax.Parser and that traverses a DOM
> > tree in pre order, and for each Element node visited : 
> > 
> Or you could one that has already been written! See John Cowan's
> Parser" on
> (I also wrote one that was part of an earlier version of 
> SAXON, but I can't
> lay my hands on it right now, and John's is just as good).
> Mike Kay
>  XSL-List info and archive:

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.