This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:if
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xsl:if
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 25 May 2001 12:35:22 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> how do i write if strtement if there are both the side of the
> = sign are variables
<xsl:if test="$v1=$v2">
>
> suppose i have a xml string as
> <test att1="1" att2="2">
>
> now i ahve to do somthing as if att1=att2 then do somthing
>
> but this
> <xsl:if test="@att1[.=@att2]"> dosent work so how do i get this ???
<xsl:if test="@att1=@att2">
(Note, if either or both attributes are absent, the result is false).
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list