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

Subject: Re: [xsl] trying to create a node-set of attribute nodes
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Mon, 10 Mar 2003 17:16:24 +0200
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



Current Thread