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

DOM and XML parser

Subject: DOM and XML parser
From: "ashu t" <aashut@xxxxxxxxxxxxxx>
Date: 14 Aug 2002 15:23:56 -0000
expat xml dom
Here i have a little (actually it is very confusing atleast for me)
confusion.
I am reading the book "professional XSL" by wrox .
In it's chapter 6 there is a heading on page 186 which is
"When to use DOM or SAX instead of XSLT"
what i thought till now that xml parser creates a dom structure over which we apply our stylesheet.
I am using sablotron xslt processor which uses expat xml parser.
When i went to these sites to find what my parser do with my xhtml document .
http://www.gingerall.com/charlie/ga/xml/p_sab.xml
http://www.gingerall.com/charlie/ga/act/gadoc.act?pg=sablot
Here it is written that expat follow dom level 1.
So what i understood is that when after converting html into well formed xml(xhtml) i call the function (i am using php as it support only sablotron processor)
xslt_process($ch , htmlfile.html ,stylesheet.xsl);
then expat makes a dom like structure of xhtml on which the stylesheet applied.
Here dom and xslt both are being used (though i got confused whether sablotron is making any thing like dom or not).
Then what does this mean
"When to use DOM or SAX instead of XSLT"


If any one can clear my doubt and explain me .
aashut

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.