XSL language
It starts with XSL and ends with XSLT, XPath and XSL-FO.
Starts from XSL
XSL refers to the extended style sheet language (EXtensible Stylesheet Language) .
The World Wide Web Consortium (W3C) started developing XSL because there was a need for an XML-based stylesheet language.
CSS = HTML style sheet
HTML uses predefined tags, and the meaning of each tag is easily understood.
The <table> tag in HTML defines a table - and the browser knows how to display it.
Adding styles to HTML elements is easy. With CSS, it's easy to tell the browser to display an element with a specific font or color.
XSL = XML stylesheet
XML does not use predefined tags (we can use any tag name we like), and the meaning of each tag is not always the same So easy to understand. The
<table> tag means an HTML table, a piece of furniture, or something else - the browserdoesn't know how to display it.
XSL can describe how to display XML documents!XSL - More than just a style sheet language XSL consists of three parts:
- XSLT - A method for transforming XML documents language.
- XPath - A language for navigating in XML documents.
- XSL-FO - A language for formatting XML documents.
The main focus of this tutorial is XSLTThe rest of this tutorial is XSLT - the language used to transform XML documents. To learn more about XPath and XSL-FO, visit our XPath tutorial and XSL-FO tutorial.