xsl:stylesheet Element
The document element of a style sheet, containing all other style sheet elements.
<xsl:stylesheet
id = "id"
extension-element-prefixes = "prefixes"
exclude-result-prefixes = "prefixes"
version = "number">
</xsl:stylesheet>
Attributes
- version
[required] Indicates the version of XSL Transformations (XSLT) the style sheet requires. Value should be set to 1.0 for this version of XSLT. - id
Specifies a unique identifier to facilitate embedding style sheets. - extension-element-prefixes
Designates a name space as an extension name space. The value is a white-space separated list of name space prefixes. The name space bound to each of the prefixes is designated as an extension name space. The default name space (as declared by xmlns) may be designated as an extension name space by including #default in the list of name space prefixes. The designation of a name space as an extension name space is effective within the subtree of the style sheet rooted at the element bearing the extension-element-prefixes; a subtree rooted at an xsl:stylesheet element does not include any style sheets imported or included by children of that <xsl:stylesheet> element. - exclude-result-prefixes
Designates a name space Uniform Resource Identifier (URI) as an excluded name space. The value is a white-space separated list of name space prefixes. The name space bound to each of the prefixes is designated as an excluded name space. The default name space (as declared by xmlns) may be designated as an excluded name space by including #default in the list of name space prefixes. The designation of a name space as an excluded name space is effective within the subtree of the style sheet rooted at the element bearing the exclude-result-prefixes; a subtree rooted at an xsl:stylesheet element does not include any style sheets imported or included by children of that <xsl:stylesheet> element.
Element Information
Number of occurrences | One |
Parent elements | (No parent elements) |
Child elements | xsl:attribute-set, xsl:import, xsl:include, xsl:output, xsl:param, xsl:template, xsl:variable, msxsl:script |
Remarks
A style sheet contains the <xsl:stylesheet> element. This element can have a set of <xsl:template> elements representing different output templates. Processing begins by processing the root template, indicated by the pattern "/".
See Also
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.