Name

<xsl:import>

Synopsis

<xsl:import href= address />

Description

Specifies the URI of an XSL stylesheet whose rules should be imported into this stylesheet. The import statement must occur before any other elements in the stylesheet. If a conflict arises between matching rules, imported stylesheets are of lesser importance to those rules in the XSL stylesheet performing the import. In addition, if more than one stylesheet is imported into this document, the more recently imported stylesheet will be of greater importance than stylesheets imported before it.

<xsl:import href="webpage.xsl"/>

This example imports the stylesheet included in the file webpage.xsl.

Get XML Pocket Reference 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.