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 |
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.
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* ].
-- Michael Ludwig
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Top-level Variables and P, Michael Kay | Thread | [xsl] Duplicate definitions in XSLT, Michael Ludwig |
[xsl] Duplicate definitions in XSLT, Michael Ludwig | Date | [xsl] Creating multiple PDF files f, Mark Wilson |
Month |