[xsl] [Illegal?] setting xsl:variable inside xsl:if code block

Subject: [xsl] [Illegal?] setting xsl:variable inside xsl:if code block
From: "Wong Chin Shin" <publicbbs@xxxxxxxxxxxxxxxx>
Date: Thu, 2 Dec 2004 10:08:10 +0800
Hi,

I got an error when I tried to do the following:

<xsl:if test="$x=$y">
	<xsl:variable something something>
</xsl:if>

It says it can't find the variable or something to that effect. How do I
accomplish this? 

Thanks!
Wong

Current Thread