top of page
Please reload

XSLT and XPath

XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents

 

XSLT stands for XSL Transformations. In this tutorial you will learn how to use XSLT to transform XML documents into other formats, like XHTML.

 

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. A common way to describe the transformation process is to say that XSLT transforms an XML source-tree into an XML result-tree.

 

XSLT uses XPath to find information in an XML document. XPath is used to navigate through elements and attributes in XML documents.

 

 

  • XPath is a syntax for defining parts of an XML document

  • XPath uses path expressions to navigate in XML documents

  • XPath contains a library of standard functions

  • XPath is a major element in XSLT

  • XPath is a W3C recommendation

Below are some examples that will go through XSLT and XPATH. 

bottom of page