Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSLT Element

XSLT xsl:apply-imports Element


XSLT Element Reference Manual Complete XSLT Element Reference Manual


Definition and Usage

xsl:apply-imports element applies template rules from an imported style sheet.

Template rules in an imported style sheet have lower priority than those in the main style sheet. If you want to use a template rule from an imported style sheet instead of an equivalent rule in the main style sheet, you use xsl:apply-imports .


Syntax

xsl:apply-imports/

property

None

Example

Suppose we have a style sheet named "standard.xsl" that contains a template rule for the message element:

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

Another style sheet can import "standard.xsl" and modify the message element as follows:

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

xsl:apply-imports/

The result will transform a message into a form element:

...


XSLT Element Reference Manual Complete XSLT Element Reference Manual