Saturday, March 13, 2010

XSL,XSLT,XSL-FO

The eXtensible Stylesheet Language(XSL) is divided into two sub-languages: eXtensible Stylesheet Language Transformations (XSLT) and eXtensible Stylesheet Language - Formatting Objects (XSL-FO).

XSLT documents are well-formed XML documents that describe how another XML document should be transformed. For XSLT to work, it needs an XML document to transform and an engine to make the transformation take place. In addition, parameters can be passed in to XSLTs providing further instructions on how to do the transformation.

1. XSLT - XSL Transformation
2. XPath - for selecting precise nodes
3. XSL-FO - XSL Formatting Objects

XSL-FO is more powerful. Normally for XML to XML or XML to HTML etc using templates XML or HTML format results are omitted. XSL-FO is used for generating WORD Documents, RTF Documents, PDF, txt, etc.

Commonly