xsl-list
[Top] [All Lists]

RE: multiple or statements in xsl:when

2004-04-02 11:28:42

<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 



<Prev in Thread] Current Thread [Next in Thread>