W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2006

Potential error in E37 of the latest errata for XSLT 1.0

From: Buchcik, Kasimier <k.buchcik@4commerce.de>
Date: Fri, 23 Jun 2006 15:44:07 +0200
Message-ID: <E0A8BA89DC17A44B8A502420EA13E29D25E812@pegasus.omega.4commerce.de>
To: <xsl-editors@w3.org>

Hi,

In E37 (http://www.w3.org/1999/11/REC-xslt-19991116-errata/),
Section 11.5; a sentence was changed to:
"In this case, the binding is visible for the descendants of all
following siblings that are not xsl:fallback instructions". 
This means that a local variable is not visible to its siblings,
but only the descendants of those siblings. Since I cannot think
of an XSLT 1.0 processor which rejects the following example, I
wonder if this is a bug in the errata.

<xsl:template match="foo">
  <xsl:varible name="bar" select="'bar'"/>
  <!-- According to the modified definition the following should
       raise an error, since $bar is not visible to the
       xsl:value-of sibling of xsl:variable.
  -->
  <xsl:value-of select="$bar"/>
</xsl:template>

Regards,

Kasimier
Received on Friday, 23 June 2006 13:44:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:58 GMT