xsl:include
Used to include the contents of one stylesheet within another.
Category: declaration
Content: none
Permitted parent elements:
xsl:package
; xsl:stylesheet
; xsl:transform
Attributes
|
|
A URL (absolute or relative) of another stylesheet to be textually included within this one. To customize the way in which the If the URI is relative, then it is interpreted relative to the base URI of
the |
Saxon availability
Available in XSLT 1.0 and later versions. Available in all Saxon editions. Available for all platforms.
Notes on the Saxon implementation
Since Saxon 13, in XSLT 4.0, xsl:include declarations
now allow cycles and "diamond" structures: if the same module is included more
than once at the same stylesheet (import) level, all but the first
xsl:include declarations are ignored.
Details
The xsl:include element is always used at the top level of the
stylesheet. The top-level elements of the included stylesheet effectively
replace the xsl:include element.
The xsl:include element may also be used at the top level of the
included stylesheet, and so on recursively.
("Textual inclusion" here is a simplification: attributes and namespaces declared
on the xsl:stylesheet element of the including module do not affect
anything in the included module.)