[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Is there an OR for XSL IF?
From: "Murray McDonald" <m.mcdonald@xxxxxxxxx>
Date: Wed, 4 Jan 2012 00:49:29 -0500
The "or" operator is part of the XPath spec.  Your test would be done as
below.

Also note that the "=" and "eq" operators are not equivalent and it's a good
idea to get into the habit of using them correctly. 


<xsl:if test="myfield/field_is_available/data eq 'Yes' or
myfield/seconsfield_is_available/data eq 'Yes'">

    ...

</xsl:if>


Take care

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member