Re: [xslt] scope of variables



On Fri, Mar 27, 2009 at 11:27:16AM +0100, Viktor Štujber <theultramage gmail com> wrote:
> The only thing that comes to mind is xslt's restriction that template
> matching rules must be static (couldn't find the place in the xslt
> spec though). If that's true, then usage of a variable ($x) is not
> allowed, even though in your example it's actually a constant. Perhaps
> libxslt changed its logic to be more strict in this regard...
> 
> This is just a guess though. In your example, replacing the variable
> with a literal 'x' worked, and this is actually how one xslt script of
> mine works.

http://www.w3.org/TR/xslt#section-Defining-Template-Rules
It is an error for the value of the match attribute to contain a
VariableReference.

Mike


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]