Subject: Re: [xsl] multiple or statements in xsl:when From: Daniel Purucker <dpu@xxxxxxxxxxxxxxxxxx> Date: Fri, 2 Apr 2004 21:16:14 +0200 |
for example run the code for this line of xml: <void property="container"> and also for this line <void property="assetscontainer">
but for example not for this line: <void property="string">
<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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] multiple or statements in, Michael Kay | Thread | RE: [xsl] multiple or statements in, Andreas L. Delmelle |
Re: [xsl] XHTML to XHTML transform, Jeffrey Moss | Date | RE: [xsl] How to make tables using , Norma Yeazell |
Month |