Share via


xsl:apply-imports Element (Windows CE 5.0)

Send Feedback

Invokes an overridden template rule.

<xsl:apply-imports />

Attributes

None.

Element Information

Number of occurrences Unlimited
Parent elements xsl:attribute, xsl:comment, xsl:copy, xsl:element, xsl:for-each, xsl:if, xsl:otherwise, xsl:param, xsl:processing-instruction, xsl:template, xsl:variable, xsl:when, xsl:with-param, outputelements
Child elements (No child elements)

Remarks

A template rule that is being used to override a template rule in an imported style sheet can use the <xsl:apply-imports> element to invoke the overridden template rule.

At any point in the processing of a style sheet, there is a current template rule. Whenever a template rule is chosen by matching a pattern, the template rule becomes the current template rule for the instantiation of the rule's template. When an <xsl:for-each> element is instantiated, the current template rule becomes null for the instantiation of the content of the <xsl:for-each> element.

<xsl:apply-imports> processes the current node using only template rules that were imported into the style sheet element containing the current template rule; the node is processed in the current template rule's mode. It is an error if <xsl:apply-imports> is instantiated when the current template rule is null.

See Also

XSLT Elements | xsl:import Element

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.