Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Automation Scripting User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

XSLT Namespace

date_range 13-Jan-21

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.

content_copy zoom_out_map
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:template match="route">
        ...
        </xsl:template>
</xsl:stylesheet 

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.

footer-navigation