You could use the choose, when, and otherwise elements to give you the
same semantics as if, then, and else.
The union operator in XPath isn't really the same as 'or'.
Dimitre posted on stack overflow:
http://stackoverflow.com/questions/3494173/xpath-or-behaving-like-union-with-xmllib2
On Tue, Jan 3, 2012 at 8:56 PM, GWmbox <gwmbox(_at_)gmail(_dot_)com> wrote:
I have had a read through the W3C stuff for IF elements but I cannot find
anything conclusive about an OR for the IF elements.
Is there in fact an option for OR, is it the | to do this. Can I have
something like
<xsl:if test="myfield/field_is_available/data = 'Yes'" |
test="myfield/seconsfield_is_available/data = 'Yes'">
Or do I need to use something else.
Thanks for your help
GW
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--