xsl-list
[Top] [All Lists]

RE: Using XSl:Variable and XSL:if together.

2004-04-01 00:10:12
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(_at_)in(_dot_)firstrain(_dot_)com] 
Sent: 01 April 2004 06:14
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--





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