[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl:if

Subject: RE: xsl:if
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 25 May 2001 12:35:22 +0100
RE:  xsl:if
> 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


Current Thread
  • xsl:if
    • anilbisht - Thu, 24 May 2001 11:18:49 -0400 (EDT)
      • Goetz Bock - Thu, 24 May 2001 11:35:52 -0400 (EDT)
      • Michael Kay - Fri, 25 May 2001 07:30:38 -0400 (EDT) <=
      • <Possible follow-ups>
      • Richard Mitchell - Thu, 24 May 2001 11:44:25 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.