<xsl:include>

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

The <xsl:include> element merges the contents of one stylesheet with another. Unlike the case of <xsl:import>, the contents of an included stylesheet have exactly the same precedence as the contents of the including stylesheet.

Syntax

<xsl:include href=URI />

Required Attributes

href

Specifies the URI of the stylesheet to include.

Optional Attributes

None.

Type

Top-level, may appear in any order as a child of <xsl:stylesheet> or <xsl:transform>.

Defined

XSLT, section 2.6.1.

Gecko support

Supported.

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/include