[xsl] xsl:if

Subject: [xsl] xsl:if
From: Andreas Andersson <andreas@xxxxxxxxxxxxxx>
Date: Mon, 27 Sep 2004 09:37:35 +0200
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@xxxxxxxxxxxxxx
http://www.travelstart.se

Current Thread
  • [xsl] xsl:if
    • Andreas Andersson - Mon, 27 Sep 2004 09:37:35 +0200 <=
      • <Possible follow-ups>
      • KS.Bhaskar - Mon, 27 Sep 2004 13:16:59 +0530
      • Eldho George - Mon, 27 Sep 2004 13:26:15 +0530