xsl-list
[Top] [All Lists]

Re: conditional declaretion of a variable

2003-04-17 08:49:12




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



<Prev in Thread] Current Thread [Next in Thread>