Subject: RE: multiple or statements in xsl:when
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 2 Apr 2004 19:28:42 +0100
|
> <xsl:when test="name(.)='void' and @property !='' and @property !=
> 'container' or
> @property != 'container' or
> @property != 'assetscontainer' or
> @property != 'incomecontainer' or
> @property != 'value' or
> @property != 'variable' "
> </xsl:when>
>
> Any ideas why my code doesn't work?
Because your logic is flawed.
if @property != 'value' is false, then @property must equal "value", and
therefore @property != 'variable' will be true. So at least one of these
terms will be true, therefore the whole condition will be true.
Michael Kay
|