-
XSL is a specification from the W3C.
-
XSL is a family of languages which allows one to describe how files encoded in the XML standard are to be formatted or transformed.
-
XSLT is the most important part of XSL
-
XSLT is used to transform an XML document into another XML document, or another type of document that is recognized by a browser, like HTML and XHTML.
-
Normally XSLT does this by transforming each XML element into an (X)HTML element.
-
With XSLT you can add/remove elements and attributes to or from the output file.
-
You can also rearrange and sort elements, perform tests and make decisions about which elements to hide and display, and a lot more.
- The stylesheet is a well-formed XML document.
-
The top-level element in the stylesheet:
- To make the XML document compliant with the XSLT specification, add following element to the XML document
-
XSLT is an XML application that transforms one XML document to another XML document or format.
The components are required for an XSLT transformation:
- XML document
-
XSL stylesheet [ File name should have extension .xsl ]
-
XSLT processor
Note:- An XSLT processor is an application that connects an XSLT stylesheet to an XML document.
Click Here to download the xml file of emp.xml
Output
- Click here to download Example1
- Click here to download Example2
Recent Comments