xsl-list
[Top] [All Lists]

xsl:if

2004-09-27 00:37:35
Hi!

I'm trying to test if a variable is the empty string or not, I can't find out how to do it with xsl:if. Here is what I have:

<xsl:variable name="currencyTmp" select="select_value_in_some_cell"/>
<xsl:if test="$currencyTmp=''">
        <xsl:variable name="currencyTmp" 
select="select_value_in_some_other_cell"/>
</xsl:if>

I know that my selects work, but the ifs doesn't?

Anyone know what I'm doing wrong?

Thanks.

--
Andreas Andersson
IT Dept.
Travelstart Nordic
andreas(_at_)travelstart(_dot_)se
http://www.travelstart.se


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