W3C home > Mailing lists > Public > xsl-editors@w3.org > October to December 2000

XSLT 1.0: xsl:apply-imports when there is no overridden rule

From: Kay Michael <Michael.Kay@icl.com>
Date: Wed, 6 Dec 2000 09:57:14 -0000
Message-ID: <6B2A5AEA929FD411AE41009027CA88E31D442D@WWMESSD048>
To: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
Section 5.6 says that "A template rule that is being used to override a
template rule in an imported stylesheet can use <xsl:apply-imports>"; it
does not say what happens if there is no such overridden rule. I can think
of at least three defensible interpretations: signal an error, invoke the
built-in template rule, or do a no-op.

A user has reported that Saxon and MSXML3 behave differently in this area.

The user was actually using xsl:apply-imports from within a template called
by name, and it might be that it was this that caused the difference. I
think the spec here can only be read one way, though it could be more
explicit: the phrase quoted above leaves room for doubt about whether
<xsl:apply-imports> can correctly be used outside a template rule, neither
does it explicitly say that <xsl:call-template> leaves the current template
rule unchanged.

Mike Kay
Received on Wednesday, 6 December 2000 04:55:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:21 UTC