Subject: Re[2]: sax or dom in XSLT procesing ?
From: Andrey Solonchuk <solo@xxxxxxxxxxxxxx>
Date: Tue, 28 Jan 2003 19:04:48 +0200
|
Hello Johannes,
Tuesday, January 28, 2003, 6:12:44 PM, you wrote:
ok, this tome I build tree with my data using as example extention
function node-set, realy I didn't understood what im building,
where I could see some examples how to create tree Sax or Dom
>>Hello xsl-list,
>>
>>when I see how to use xalan for xslt I founded that as source
>>it can use both DOM and SAX. I make data for procesing with xslt in my
>>programm and withot saveng xml data to disk transform it with xstl.
>>What is better to use as input data? dom or sax? I think that xslt
>>processor in any case convert inpur data to DOM and only after that
>>transform.
>>whats you opinion ? if i`m right ?
>>
>>--
>>Best regards,
>> Andrey mailto:solo@xxxxxxxxxxxxxx
JD> A XSLT processor may not use DOM internally but rather an own tree model
JD> which is better suited to implement optimizations.
JD> (like Saxon and jd.xslt do). If you pass a DOM tree, then the processor
JD> could choose to rebuild the tree in its internal model.
JD> So if you have the choice to pass the input as DOM tree or as SAX events,
JD> then choose SAX, therefore making less assumptions about the processors
JD> inner workings.
JD> But if you already have constructed the DOM, then pass the DOM.
JD> regards,
JD> Johannes
JD> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
Best regards,
Andrey mailto:solo@xxxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|