XSL Languages
It starts with XSL and ends with XSLT, XPath, and XSL-FO.
Starting with XSL
XSL stands for Extensible Stylesheet Language (EXtensible Stylesheet Language)。
The reason the World Wide Web Consortium (W3C) began developing XSL was that there was a need for an XML-based stylesheet language.
CSS = HTML Stylesheets
HTML uses predefined tags, and the meaning of each tagis easy to understand。
The tag in HTML
clearly indicates how to display itIt is easy to add styles to HTML elements. With CSS, it is easy to tell the browser to display an element with a specific font or color.
XSL = XML Stylesheets
XML does not use predefined tags (we can use any tag names we like), and the meaning of each tagis not always so easy to understand。
XSL can describe how to display an XML document!
XSL - More Than Just a Stylesheet Language
XSL consists of three parts:
- XSLT - a language for transforming XML documents.
- XPath - a language for navigating within XML documents.
- XSL-FO - a language for formatting XML documents.
The main content of this tutorial is XSLT
The rest of this tutorial is about XSLT - the language used to transform XML documents.
To learn more about XPath and XSL-FO, please visit ourXPath Tutorial and XSL-FO Tutorial。