Re: Scoping of options and variables

On Wed, Feb 10, 2010 at 1:22 PM, Norman Walsh <ndw@nwalsh.com> wrote:
> Do we all agree that in this case:
>
> <p:pipeline version="1.0">
>  <p:variable name="foo" select="'bar'"/>
>  <p:group>
>    <p:variable name="foo" select="'baz'"/>
>    <p:identity/>
>  </p:group>
> </p:pipeline>
>
> Shadowing is the expected (and correct) behavior?

No.

The consensus from the previous call (02/04/2010) was that it should
not be shadowed and should be an error.  That's the "strict" option in the
minutes from that call [1].

[1] http://www.w3.org/XML/XProc/2010/02/04-minutes.html

-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics

Received on Wednesday, 10 February 2010 22:57:21 UTC