xsl-list
[Top] [All Lists]

Re: trying to create a node-set of attribute nodes

2003-03-10 08:16:24
Robert P. J. Day wrote:

but what if i want attr nodes where key is specifically equal
to "F"?  i'm assuming that requires a predicate, but i've tested
several variations and none work.  how do i ask if the string-value
is equal to "F"?

  //@key["F"] doesn't work

what do i use here as the predicate?  i'm sure i'll be embarrassed
once it's pointed out to me.

//@key[.='F']

where . is a shortcut for self::node() aka context node.
--
Oleg Tkachenko
Multiconn Technologies, Israel


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list