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

Re: Detecting presence of attributes

Subject: Re: Detecting presence of attributes
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 5 Feb 2001 05:12:02 -0800 (PST)
xpath presence of attribute
Hi Peter,

In case the value was not a list of entity names, but of type IDREFS,
then the id() function will return a nodeset of nodes that have one of
the id-s in the list as the value of their ID attribute.

Then you could iterate on these ID values -- fortunately, only the
first node having a particular @ID value will be returned (as stated in
Mike Kay's book).

Therefore, the XPath expression you might find useful would be:

id(@foo)/@ID

However, it seems to me that this is not exactly your case. In any case
the list of names can be processed recursively.  

In Saxon there's saxon:tokenize().

Dimitre.


--- Peter Flynn <peter@xxxxxxxxxxx> wrote:
> At Monday, 5 February 2001, you wrote:
> 
> >The ***value*** of the ***single @foo attribute node*** contains
> >multiple entity names.
> >
> >This has nothing to do with the fact that an element has only 0 or 1
> >attribute having a given name.
> 
> So it appears :-) OK, next question: is there a syntax in XPath
> which will give access to each entity name in turn? 
> 
> ///Peter
> 
> 
> 
> 
> 
> 


__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.