7.1. Working with External Stylesheets

Several elements in XSLT are used specifically to access stylesheets and template rules that are external to the current (or calling) stylesheet. These elements are <xsl:include> and <xsl:import>, which are the top-level elements used to bring in the external stylesheets, and <xsl:apply-imports>, which is an instruction element used specifically to choose an imported template rule over those in the current stylesheet.

7.1.1. The <xsl:include> Top-Level Element

The <xsl:include> element is used to access and incorporate the contents of another stylesheet into the current, or calling, stylesheet. It can be used anywhere in an XSLT stylesheet as long as it is a direct child of the <xsl:stylesheet> or <xsl:transform> ...

Get XSLT and XPATH: A Guide to XML Transformations now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.