This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: some help with xsl:if
Antonio Fiol wrote:
> Gabriel C Millerd wrote:
>
>> I have an XML tag ...
>>
>> <stuff>
>> <var name="athing">3.14</var>
>> </stuff>
>>
>> ... 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.
>
>
> AFAICS,
> <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: http://www.mulberrytech.com/xsl/xsl-list