[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: trying to create a node-set of attribute nodes
From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
Date: Mon, 10 Mar 2003 10:12:10 -0500 (EST)
Re:  trying to create a node-set of attribute nodes
On Mon, 10 Mar 2003, Jeni Tennison wrote:

> Hi Robert,
> >   eg., if i wanted all attribute nodes with name "key", that's
> > just
> >
> >   //@key
> >
> > 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"?
> Get the string value of the context node (the attribute) with the
> string() function:
>   //@key[string(.) = "F"]
> or just use . and let the processor do the conversion of the attribute
> node to a string implicitly:
>   //@key[. = "F"]

ah, that's it.  i knew it must have been something this obvious.
thanks muchly.


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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.