Step 3 : Applying Style to an XML File

If you want to display your XML files in a web browser in an HTML format for example, common practice is to transform XML files using XSLT (Extensible Stylesheet Language Transformations). XSLT is written in XML. It provides a language for transforming XML files into various output formats (including XML). For example, XSLT can be used to select specific elements from an XML file for display, or to display selected elements in a different order from that which they occur in the XML file. Other methods of applying style to an XML file include CSS (Cascading Style Sheets).

A Basic XSLT File
A Basic XSLT File
A Basic XML File Transformed using XSLT, Previewed in Internet Explorer
A Basic XML File Transformed using XSLT


Workshop  Workshop