What is XSL?
XSL provides a a fairly simple language, based on level 0 of the
ISO/IEC 10179 Document Style Semantics and Specification Language
(DSSSL). It is, itself, based on XML, which means that the language is
defined using tags, or named rules delimited by angle
brackets. XSL is also based on the concept of patterns,
syntactic rules that determine which XSL presentation is applied to
what XML elements.
To demonstrate XSL, consider the following block of XML:
<document>
<title>What is XML</title>
<sidebar>
<title>What is a markup language</title>
<body>
A markup language is any language that contains
markup characters that determine how the
contents are processed.
</body>
</sidebar>
<content>
<title>What is XML?</title>
<body>
XML is Extended Markup Language, a generic language
used to generate documents without following predefined
element types.
</body>
</content>
</document>
This XML defines a document that has an overall title, a sidebar with
its own title, and the regular document content with its own
title. The XML document described the elements of the document, but
nothing about how the elements are presented. That's where XSL comes
in, described in the next sections, beginning with the XSL
rule.
The Necessity of XSL
Add a little style to your XML document with XSL - a Working Example
Defining an XSL Rule
|