This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: XPath help


Hello Edmund,

Try :
//*[@name and not (@name = following::*/@name) and not (@name =
preceding::*/@name)]
which should select all element nodes that have a 'name' attribute and
whose 'name' attribute's value is not present in the rest of the document
as an 'name' attribute...

There might be a simpler version (especially avoiding the double test on
preceding and following)...

Hope this helps.

Mathias Bonnard
Valoris
19-21, rue du Colonel Avia
75015 Paris
06 63 56 16 25

-----Message d'origine-----
De : owner-xsl-list@mulberrytech.com
[mailto:owner-xsl-list@mulberrytech.com]De la part de edmund mitchell
Envoyé : samedi 11 novembre 2000 06:51
À : xsl-list@mulberrytech.com
Objet : XPath help


Hello all
I would like to process a given element if the value in it's 'name'
attribute is not duplicated by the value of any _other_ element's 'name'
attribute elsewhere in the document.
I frightened the dog from the room with:
test="@name[not(//*/@name[not(self::*)])]"
No more newbie struggles- it's time to consult the masters...
Thanks for your help
Edmund
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.


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



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]