Share via


xsl:transform Element (Compact 2013)

3/26/2014

The document element of a style sheet containing <xsl:template> and <msxsl:script> elements. Synonym for xsl:stylesheet.

Syntax

<xsl:transform
  id = id 
  extension-element-prefixes = tokens 
  exclude-result-prefixes = tokens 
  version = number>
  <!-- Content: (xsl:import*, top-level-elements) -->
</xsl:transform> 

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 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 synonym for 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

Reference

XSLT Elements
xsl:stylesheet Element