Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

XSLT Namespace

The XSLT namespace has the Uniform Resource Identifier (URI) http://www.w3.org/1999/XSL/Transform. The namespace must be included in the style sheet declaration of a script in order for the XSLT processor to recognize and use XSLT elements and attributes. The following example declares the XSLT namespace and associates the xsl prefix with the URI.

Once the XSLT namespace is declared in a script, you use elements and attributes from the namespace by adding the associated prefix, which in this case is xsl, to the tag or attribute name. In the preceding example, the XSLT processor knows to treat xsl:template as an XSLT instruction. During processing, the xsl prefix is expanded into the URI reference, and the functionality of the template element is defined by the XSLT namespace. For more information about namespaces, see XML Overview.