Shadowing of variables..

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."
	(http://www.w3.org/TR/xproc/#variables-options-parameters)

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:group>
		<p:variable name="myvar" select="2"/>

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

Kind regards,
Geert


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



Dayon B.V.
Delftechpark 37b
2628 XJ Delft

T +31 (0)88 26 82 570

geert.josten@dayon.nl
www.dayon.nl

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