Re: conditional declaretion of a variable2003-04-17 08:49:12You 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
|
|