Subject: RE: document() revisited From: Kay Michael <Michael.Kay@xxxxxxx> Date: Thu, 17 Feb 2000 11:40:20 -0000 |
> I wish to go through each file and copy those nodes to the > result tree that EITHER have no "lang" attribute set, > or that DO NOT have lang="german" or lang="french". > > My filter is: > > <xsl:copy-of select="selection*[not(boolean(@lang)) or ( > @lang !='german' and @lang !='french' )]"/> > I assume the asterisk is a typo. Try: <xsl:copy-of select="selection[not(@lang) or not(@lang='german' or @lang='french')]"> Always remember that a!=b in XSLT does not mean the same as not(a=b). If @a doesn't exist, then @a=b and @a!=b are both false. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: document() revisited, Steve Tinney | Thread | XSL or CSS, ergun . turker |
RE: number and XT, Kay Michael | Date | RE: ** security problem and link, Kay Michael |
Month |