Next / Previous / Contents / TCC Help System / NM Tech homepage

6. The root element <xsl:stylesheet>

The root element of any XSLT stylesheet must be <xsl:stylesheet>. This tag is described below, followed by the “top level tags” that must be children of <xsl:stylesheet>, that is, they must be outside all <xsl:template> elements.

6.1. <xsl:stylesheet> attributes

Attributes of <xsl:stylesheet> include:

version (required)

Use version="1.0".

xmlns:xsl

Use xmlns:xsl="http://www.w3.org/1999/XSL/Transform" to connect your document to this version of the XSLT standard.

extension-element-prefixes

This attribute defines a prefix you will use to invoke extension elements. See extension elements below.

exclude-result-prefixes

Normally, any element whose name doesn't start with xsl: is copied to the output. However, if you are using extension elements, you can use this attribute to specify that elements with certain prefixes are to be processed and not copied to the output. See the section on extension elements below for an example.