Re: [xsl] some help with xsl:if

Subject: Re: [xsl] some help with xsl:if
From: Antonio Fiol <fiol@xxxxxxxxxx>
Date: Fri, 17 May 2002 15:59:14 +0200
Antonio Fiol wrote:

Gabriel C Millerd wrote:

I have an XML tag ...

<var name="athing">3.14</var>

... I am tying to match it but not being successful ...

<xsl:if test="/stuff/var[@name='athing']='3.14'">You matched it!</xsl:if>

... can anyone help me? I think i am close. Thanks very much.

<xsl:if test="$athing=3.14">You matched it!</xsl:if>

SORRY, I read <xsl:variable> where you said <var>. Sorry again.

If you really meant <var>, your thing should do the job, provided that it is in the right context. Not sure at all, as I am also a newbie (I began yesterday). You could try doubling the first slash.

Antonio Fiol

XSL-List info and archive:

Current Thread