No, it builds DTM in either case. Even if you use javax.xml.transform.dom.DOMSource. DTM is specifically optimized for XPath and other XSLT aspects. DOM's modification functionality is also excessive (and dangerous) for XPath/XSLT tasks. You can find more detailed info here: http://xml.apache.org/xalan-j/dtm.html
Thanks, Dimitry -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 15:26 To: [EMAIL PROTECTED] Subject: Re: DOM -> XSLT -> DOM ??? But I need to specify the 'incremental' attribute to get DTM rite? Otherwise (by default) it builds straight DOM on the input side? M Voytenko, Dimitry([EMAIL PROTECTED])@2003.03.17 15:14:27 +0000: > Yes. If you use javax, you should use javax.xml.transform.sax.SAXResult. > Actually, only javax.xml.transform.dom.DOMResult builds DOM. > > Thanks, > Dimitry > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, March 17, 2003 15:10 > To: [EMAIL PROTECTED] > Subject: Re: DOM -> XSLT -> DOM ??? > > > Cool - so on the output side it's pure SAX - it's not 'building up' > a result in memory or anything? > M > > Voytenko, Dimitry([EMAIL PROTECTED])@2003.03.17 15:06:49 +0000: > > Hi, > > > > If you feed SAX stream into Xalan it builds DTM internally (that is > > optimizied version of DOM). There's no other way to perform transformation > > in whole support of the XSLT specification. But Xalan outputs SAX stream > and > > it's up to you to feed it to DOM builder or output to file or pass SAX > > stream to another handler. > > > > Thanks, > > Dimitry > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 17, 2003 15:02 > > To: [EMAIL PROTECTED] > > Subject: Fwd: DOM -> XSLT -> DOM ??? > > > > > > Howdy, > > Dumb question probably BUT: > > If I have a SAX stream & I feed it to XALAN & want > > a SAX stream back internally does XALAN convert my > > input document into a DOM tree - do the transformation into > > a DOM tree - & then outputs the resulting DOM as SAX? > > Can I get SAX all the way thru?? As XSL seems 'random-access' > > is that even possible? > > thanks! > > M > > > > -- > > ------------------------------------------ > > Mark Ethan Trostler [EMAIL PROTECTED] > > Computing Solutions http://www.zzo.com > > ------------------------------------------ > > > > > > _____________________________________________________ > > Revere Data, LLC, formerly known as Sector Data, LLC, is not affiliated > with > > Sector, Inc., or SIAC. > > -- > ------------------------------------------ > Mark Ethan Trostler [EMAIL PROTECTED] > Computing Solutions http://www.zzo.com > ------------------------------------------ > > > _____________________________________________________ > Revere Data, LLC, formerly known as Sector Data, LLC, is not affiliated with > Sector, Inc., or SIAC. -- ------------------------------------------ Mark Ethan Trostler [EMAIL PROTECTED] Computing Solutions http://www.zzo.com ------------------------------------------ _____________________________________________________ Revere Data, LLC, formerly known as Sector Data, LLC, is not affiliated with Sector, Inc., or SIAC.
