RE: [xsl] Using XSl:Variable and XSL:if together.

Subject: RE: [xsl] Using XSl:Variable and XSL:if together.
From: "Animesh Sharma" <asharma@xxxxxxxxxxxxxxxx>
Date: Thu, 1 Apr 2004 12:08:53 +0530
oh. I just realized that Variable value cann't be reset once it is defined.

So, is there a alternative way where I can do different operation depending on the position of node(element) to be even or odd.

Thanks ,
Animesh


-----Original Message-----
From: Animesh Sharma 
Sent: Thursday, April 01, 2004 11:44 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Using XSl:Variable and XSL:if together.


Hi,

I want to declare a variable and use it in if statement.
I'm trying as follows.

	<xsl:variable name="chkValue" select="'true'"/>
	
	<xsl:if chkValue="true">
	
	--perform some operation.
	
	Change the value of variable name chkValue.	
	<xsl:variable name="chkValue" select="'false'"/>
	
	</xsl:if>

Please let me know where I'm going wrong in above implementation.

Thanks and regards,
Animesh

Current Thread