3. α Extensible Stylesheet Language.
α A Formatting language.
α Vocabulary for describing the formatting
(i.e. layout) What of a document is XSL?
via "Formatting
Objects“
α Consist of Three part
XSLT
Xpath
XSL-FO
4. XML
(content)
XSL
(presentation)
How it Works?
XSL Parser
(Transformation engine)
XML, PDF, XHTML
14. α Extensible Stylesheet Language
Transformations
α XSLT1.0 accepted in 1999 as W3C standard
α XSLT2.0 just reached recommendation level
What is XSLT?
in January 2007.
α XSLT is designed for use as part of XSL,
which is a stylesheet language for XML.
α Use XML Syntax.
α Can be used like a stylesheet or embedded
in a programming language.
21. <xsl:for-each select="//book">
loops through every book element, everywhere in the
document
<xsl:value-of select="title"/>
chooses the content of the title element at the
current location
Summary of XSL file
<xsl:for-each select="//book">
<xsl:value-of select="title"/>
</xsl:for-each>
chooses the content of the title element for each
book in the XML document