Re: [xsl] Top-level Variables and Parameters (XSLT 1.0 spec, section 11.4)

Subject: Re: [xsl] Top-level Variables and Parameters (XSLT 1.0 spec, section 11.4)
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Wed, 19 Aug 2009 18:50:06 +0200
Michael Kay schrieb:

Does the statement defining an error condition apply to both
xsl:variable and xsl:param or only to xsl:variable?

It's intended to apply to both. I agree it could be clearer.

Thanks.


The rule in 2.0 is:

[ERR XTSE0630] It is a static error if a stylesheet contains more than
one binding of a global variable with the same name and same import
precedence, unless it also contains another binding with the same name
and higher import precedence.

which relates to the definitions earlier:

[Definition: A top-level variable-binding element declares a *global
variable* that is visible everywhere (except where it is shadowed by
another binding).]

[Definition: The two elements xsl:variable and xsl:param are referred
to as *variable-binding elements* ].

That's definitely clearer than in 1.0.


--
Michael Ludwig

Current Thread