XML : eXtensible Markup Language :: Introduction to XSLT [XML Stylesheet Language Transformation]
- What is XSLT?
- Structure of XSLT
- Components Required for XSL Transformation
- XSL Template
- Download Examples
| What is XSLT? |
- 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.

| Structure Of XSLT |
- 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.
| Components are required for an XSLT |
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.
| XSL Templates |


Click Here to download the xml file of emp.xml
Output

| Download Examples |
Recent Comments