Re: [xslt] scope of variables
- From: Mike Hommey <mh glandium org>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] scope of variables
- Date: Fri, 27 Mar 2009 11:35:37 +0100
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]