This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Evaluating using xsl:if
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: Evaluating using xsl:if
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Sat, 30 Sep 2000 07:07:13 +0100
- Reply-To: xsl-list at mulberrytech dot com
Satish,
Try
<xsl:variable name="account" select="on" />
...
<xsl:if test="$account='on'">
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
>-----Original Message-----
>From: owner-xsl-list@mulberrytech.com
>[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of satish gvs
>Sent: 30 September 2000 00:50
>To: xsl-list@mulberrytech.com
>Subject: Evaluating using xsl:if
>
>
>i have a constant declared as follows:
><xsl:variable name="account">
> on
></xsl:variable>
>in the same xsl if i use the following the condition is not evaluated to
>true. can anybody answer my question.Is there any way to test this
>condition?
>
> <xsl:if test="'{$account}'='on'">
>
> <table cellpadding="0" cellspacing="0" border="0">
> <tr>
> <td rowspan="3"></td>
> <td><a href="" target="main" class="secnav">New Account</a></td>
> </tr>
> <tr>
> <td><a href="" class="secnav">Transfer Funds</a></td>
> </tr>
> <tr>
> <td><a href="" class="secnav">Switch Accounts</a></td>
> </tr>
> </table>
> </xsl:if>
>
>thanks in advance.
>satish
>
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list