W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2015

[Bug 28350] [XSLT30] (possibly editorial) static variables declaration order, unfinished sentence in spec

From: <bugzilla@jessica.w3.org>
Date: Thu, 26 Mar 2015 22:44:23 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28350-523-kohShURSlH@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28350

--- Comment #1 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
> I'm not 100% sure, but I think it means (among others) that the following 
> is legal:

> <xsl:variable static="yes" name="first" select="'hello'" />
> <xsl:variable static="yes" name="first" select="$first || ' world'" />

Correcting myself, rules just prior to this section ensure that both variables
must be consistent (i.e. have the same value), which clearly is not the case
here. It should throw XTSE3450 (meaning the values are inconsistent).

If the second variable would occur in an imported stylesheet and be imported
after the first declaration, overriding the value is allowed, but you would not
be able to access the value of the original variable.

Leaving the bug open because of the typo in the quote in the comment#0 above.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 26 March 2015 22:44:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:53 UTC