RE: Using XSl:Variable and XSL:if together.
You haven't understood that XSLT is a functional language that doesn't allow assignment to variables. You'd better take a step back and explain the problem you want to solve, rather than describing the way you would have solved it in a procedural language. Michael Kay > -----Original Message----- > From: Animesh Sharma [mailto:asharma@xxxxxxxxxxxxxxxx] > Sent: 01 April 2004 06:14 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: 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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format