Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSL Languages

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 it

It 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。

The tag defines a table - and the browser.

XSL can describe how to display an XML document!


XSL - More Than Just a Stylesheet Language

XSL consists of three parts:


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。

A tag means an HTML table, a piece of furniture, or something else - the browser **does not know how to display it**.