This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes What is the diff between XSL and DOM ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "What is the diff between XSL and DOM ?" Watch "What is the diff between XSL and DOM ?" New topic
Author

What is the diff between XSL and DOM ?

Tejas Patel
Greenhorn

Joined: Oct 03, 2000
Posts: 11
Hello Friends !!!
Can u please tell me what is the diff betn. XSL and DOM ?
and when to use XSL and When to Use DOM ?
Anyone tell me?
Thanx.
Tejas.
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
XSL is a styling language and XSLT is a spec. XSL comprises of an instruction set that can be used to transform an XML document into another XML, a HTML or a text document. This transformation is done using an XSLT (eXtended Stylesheet Language Transformation ) processor. Put simply
XML + XSL -----(XSLT)-------> HTML/XML/text document.
XSL is more related to presentation or transformation of XML data.

DOM( Document Object Model ) on the otherhand is a W3C specification for parsing XML documents. DOM feeds on XML and represents the XML structure as a tree in memory. Once DOM has been fed, you can use the tree to manipulate data ("nodes") that it may contain.

Please read my otherpost that talks about another popular parsing method called SAX( stands for Simple API for XML parsing ).
Hope that helps!
Ajith


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is the diff between XSL and DOM ?