Subject: Re: Detecting presence of attributes
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 5 Feb 2001 05:12:02 -0800 (PST)
|
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
|