xsl-list
[Top] [All Lists]

Re: [xsl] Is there an OR for XSL IF?

2012-01-03 23:49:39
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--