• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

What is the diff between XSL and DOM ?  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!