Subject: RE: [xsl] multiple or statements in xsl:when From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx> Date: Fri, 2 Apr 2004 21:56:32 +0200 |
> -----Original Message----- > From: Daniel Purucker [mailto:dpu@xxxxxxxxxxxxxxxxxx] > > Sorry, but i'm a little confused (dammed boolean algebra) ;) > What i want is: to run the code if: > a) the name of the tag is void AND > b) there is an attribute "property" which is not empty AND > c) the value of this attribute is either 'container' OR ' > assetscontainer' OR and so on > Hi, Well, you could make it easier on yourself if you were to place a few braces in strategic locations ;) However, first things first: following c) above, I don't see why you are testing for *in*equality to 'container' or 'assetcontainer' ... This would more reflect what you're trying to do: <xsl:when test="(name(.)='void' and @property!='') and ( @property='container' or @property='assetscontainer' ... )" /> To specify which @property values to disregard: <xsl:when test="name(.)='void' and ( @property != '' and @property != 'string' ...)" /> Hope this helps! Cheers, Andreas
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] multiple or statements in, Daniel Purucker | Thread | Re: [xsl] multiple or statements in, Daniel Purucker |
Re: [xsl] How to specify document o, Wendell Piez | Date | Re: [xsl] XHTML to XHTML transform, Jeffrey Moss |
Month |