HTML and CSS Reference
In-Depth Information
Structure
The structure of XSLT style sheets looks like Listing 5-79.
Listing 5-79. XSLT Style Sheet Structure
<xsl:stylesheet version="1.0" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform " >
<xsl:import href="..."/>
<xsl:include href="..."/>
<xsl:strip-space elements="..."/>
<xsl:preserve-space elements="..."/>
<xsl:output method="..."/>
<xsl:key name="..." match="..." use="..."/>
<xsl:decimal-format name="..."/>
<xsl:namespace-alias stylesheet-prefix="..." result-prefix="..."/>
<xsl:attribute-set name="...">
...
</xsl:attribute-set>
<xsl:variable name="...">...</xsl:variable>
<xsl:param name="...">...</xsl:param>
<xsl:template match="...">
...
</xsl:template>
<xsl:template name="...">
...
</xsl:template>
</xsl:stylesheet>
Note that the previous example shows all allowed element types; however, style sheets might contain zero or
more of these elements.
Elements
XSLT style sheets are represented by the xsl:stylesheet or xsl:transform element in XML documents. An
xsl:stylesheet element must have a version attribute. The xsl:stylesheet element may contain the following
types of elements: xsl:import , xsl:include , xsl:strip-space , xsl:preserve-space , xsl:output , xsl:key ,
xsl:decimal-format , xsl:attribute-set , xsl:param , xsl:variable , xsl:namespace-alias , and xsl:template .
Table 5-6 provides an overview of XSLT 1.0 elements.
 
Search WWH ::




Custom Search