XML & XSL - xsl:stylesheet
Syntax
<xsl:stylesheet default-space="preserve" indent-result="yes" language="language-name" result-ns="value">
Attributes
- default-space - setting to default preserves white space from the source document to the output.
- indent-result - preserve style sheet white space into the ouput. Set to yes.
- language - scripting language as a default for the style sheet and all elements contained within that style sheet.
- result-ns - XSL processor output. Can be XML, HTML, etc.
Parent Elements
None.
Child Elements
Purpose
The xsl:stylesheet element can have multiple xsl:template elements.
The root template, indicated by the / pattern, is the first template processed.
See the xsl:apply-templates page to see an example of
multiple templates within a single style sheet.