|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Standard API to XSL processors
Tyler Baker wrote: > If someone has to build a DOM > tree, write it out to a stream which is then piped into an XSL Processor and > reparsed, that is an extra indirection of inefficiency that in the real world > would knock out a lot of the potential benefits of a standard XSL API. But if you write it out to a SAX DocumentHandler rather than a OutputStream or a Writer you don't have this inefficiency. Always writing out to the DOM is seriously inefficient. In many cases it would double the amount of memory you need (two trees in memory, rather than one). Building a DOM tree is *expensive* especially in Java. If you have to choose one kind of output, a SAX DocumentHandler is the most efficient choice. It means you have little overhead whatever you want to do: - write the XML an OutputStream - write the XML to Writer - run another SAX filter - build a DOM tree Any other choice introduces substantial overhead in some of those four cases. James XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








