OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] XSLT with DOM or SAX ?

[ Lists Home | Date Index | Thread Index ]

Oleg Tkachenko wrote:

> Razvan MIHAIU wrote:
>> What kind of parser is best to use for XSLT transformations ? SAX or 
>> DOM ? XSLT can require random XML access – depending on the context 
>> of processing. That being the case DOM seems to be more appropriate 
>> for XSLT.
> Provided that DOM is hugely inefficient for performing XSLT, most XSLT 
> processors always build their own proprietary optimized tree 
> representation of an input XML to work with.
> Given that it's clear that DOM is just a waste of memory here - use 
> SAX instead.
    I do not understand. An XSLT processor can require random access to 
the XML instance. With SAX you would be forced to pass the document 
multiple times.

    Are you suggesting to use SAX to build an in-memory representation 
of XML other than DOM ?


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS