RE: [xsl] variable in xsl:template match

Subject: RE: [xsl] variable in xsl:template match
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 26 Apr 2007 15:54:59 +0100
> Variables are not allowed to be used in the match attribute 
> of a template.
> 
>   Ref. XSLT 1.0 section 5.3:
> 
>    It is an error for the value of the match attribute to contain
>    a VariableReference.
> 

But this rule is lifted in XSLT 2.0.

I believe also that there are some XSLT 1.0 processors that fail to enforce
the rule.

Michael Kay
http://www.saxonica.com/

Current Thread