Subject: RE: Multiple expressions in xsl:if From: "Ron Ten-Hove" <rtenhove@xxxxxxxxx> Date: Tue, 4 Apr 2000 12:07:51 -0700 |
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 > 5) | ($b > 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 > 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Multiple expressions in xsl:if, David Carlisle | Thread | Re: Multiple expressions in xsl:if, David_Marston |
Re: <xsl:choose> <xsl:when> and gra, David Carlisle | Date | Re: Why saxon doesnt allow this?, David Carlisle |
Month |