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

RE: Multiple expressions in xsl:if

Subject: RE: Multiple expressions in xsl:if
From: "Ron Ten-Hove" <rtenhove@xxxxxxxxx>
Date: Tue, 4 Apr 2000 12:07:51 -0700
xsl if multiple expressions
You should use or, rather than |.  See XPath PR, section 3.4:
http://www.w3.org/TR/xpath#booleans

Quoting from that source:

[21]    OrExpr    ::=    AndExpr  
                         | OrExpr 'or' AndExpr 

-Ron
-----Original Message-----
[snip]
<xsl:if test="($a &gt; 5) | ($b &gt; 0) | ($c lt; 5)">
<xsl:call-template name="abc"/>
</xsl:if>

I get an XSLT parser error for the above mentioned Stylesheet codes.
It works fine if I test only one expression(e.g. <xsl:if test="$a &gt;
5">...) instead of multiple. But, I need to check all of them at the same
time.
[snip]


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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.