Xml Overview

What is XSL



XSL is Extensible Stylesheet Language that support reorder,sort,display of elsements based on condition.

XSL has two parts,

XSL Transformation(XSLT):The XML based language allows to transform an XML documents into other format such as HTML,XHTML.

XML Path(Xpath): This language is used to access part of XML such as elements and attributes.

XSLT uses Xpath expression to extract specific part of XML documents.

What is XSLT Processor



The XSLT processor is packaged with Microsoft XML parser. The MSXML parser is used to parse XSLT document. The MSXML parser parses XSLT stylesheet and creates tree structure based on the elements and attributes. The tree is referred as XSLT tree.The XSLT processor takes the transformation information contained in XSLT stylesheet, applies it to the data retrieved from the source documents and build the result tree. This result tree is used for various targets such as web browsers, cell phones etc.

XSLT Elements



XSLT supports following elements to format the data,

Stylesheet
Value-of
For-each
Sort
Text

Stylesheet: A stylesheet declaration is added to XSLT file to instructs it is stylesheet file.

Syntax,


Value-of: This element displays value of specified elements or attribute.

Syntax,


For-each: The elements instructs XSLT processor to process information for each instance of the specified pattern.
Syntax,

[Action to be performed]


pattern can values as element,parent/child,ancestor//child.

Sort:e element is used to sort based on the value specified for elements and attributes.

Syntax,


expression represents element name.

Application of XSL



Conversion of XML into HTML.
Used in web browser.
Cellular phones.


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: