W3C home > Mailing lists > Public > xproc-dev@w3.org > November 2011

Shadowing of variables..

From: Geert Josten <geert.josten@dayon.nl>
Date: Sun, 27 Nov 2011 13:58:34 +0100
Message-ID: <2552382051b4f7d3c520edfd45b4990c@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
The recommendation says:
	"Variables are created in compound steps and, like XSLT variables,
are single assignment, though they may be shadowed by subsequent
declarations of other variables with the same name."

But doing this is not accepted by XMLCalabash:

	<p:variable name="myvar" select="1"/>
	<p:variable name="myvar" select="2"/>

Nor is:

	<p:variable name="myvar" select="1"/>
		<p:variable name="myvar" select="2"/>

Is XMLCalabash too strict here or should I read 'subsequent declarations'
in a different way?

Kind regards,

drs. G.P.H. (Geert) Josten
Senior Developer

Dayon B.V.
Delftechpark 37b
2628 XJ Delft

T +31 (0)88 26 82 570


De informatie - verzonden in of met dit e-mailbericht - is afkomstig van
Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan
dit bericht kunnen geen rechten worden ontleend.
Received on Sunday, 27 November 2011 12:59:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:09 UTC