[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] conditional declaretion of a variable


Subject: Re: [xsl] conditional declaretion of a variable
From: david_n_bertoni@xxxxxxxxxx
Date: Thu, 17 Apr 2003 08:49:12 -0700




> You don't conditionally want to assign a variable, you want to
> definitely assign a variable, to a value that depends on a condition.
> So the more natural (and legal) way is
>
> <xsl:variable name="valueField"
select="@valueField|@field[not(@valueField)]"/>

Don't you really mean:

   <xsl:variable name="valueField"
   select="@valueField|@field[not(../@valueField)]"/>

?

Dave


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread