[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSLT with DOM or SAX ?

  • To: "Michael Kay" <mike@s...>
  • Subject: Re: XSLT with DOM or SAX ?
  • From: Chris Burdess <dog@b...>
  • Date: Mon, 28 Mar 2005 09:33:26 +0100
  • Cc: <xml-dev@l...>,"'Razvan MIHAIU'" <mihaiu@m...>
  • In-reply-to: <E1DFcEL-0004ZP-00@d...>
  • References: <E1DFcEL-0004ZP-00@d...>

dom xslt
Michael Kay wrote:
>> What kind of parser is best to use for XSLT transformations ?
>> SAX or DOM
>
> XSLT processors will in general build a tree representation of the 
> source
> document in memory. And in general, many of them will build a tree
> representation that is much more efficient than using a 
> general-purpose DOM.
> So there's no point building an inefficient DOM tree rather than 
> letting the
> XSLT processor build its own. But this advice may depend on the XSLT
> processor you are using.

For what it's worth, the GNU JAXP XSLT processor uses DOM internally 
for both source and result trees, and is about 2.8 times as fast as 
Xalan on a wide range of transformations (the OASIS XSLT/XPath 
conformance suite). I don't have figures for memory usage or 
comparisons with Saxon though.
-- 
Chris Burdess


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.