[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: document() revisited
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|