This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: match selection formulae
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] match selection formulae
- From: "McKeever, Marty" <marty dot mckeever at bankofamerica dot com>
- Date: Fri, 07 Sep 2001 08:48:46 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
So if i'm reading you correctly, the following:
match="foo[@bar!='']"
1. <foo>x</foo>
2. <foo bar="">x</foo>
3. <foo bar="x">x</foo>
should match #3 only?
and are these two expressions equivalent?
match="foo[@bar!='']"
match="foo[not(@bar='')]"
-----Original Message-----
From: Michael Kay [mailto:mhkay@iclway.co.uk]
Sent: Friday, September 07, 2001 5:28 AM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] match selection formulae
> In my naiveity, I thought that @rend='' would be the
> equivalent of testing for
> the non-existence of an attribute - however, not(@rend)
> doesn't appear to work either.
boolean(@rend) is true if the attribute exists
not(@rend) is true if the attribute doesn't exist
@rend='' is true if the attribute exists and has the value "".
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list