[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: XPath help
Subject: RE: XPath help From: "Mathias Bonnard" <mathias.bonnard@xxxxxxxxxxx> Date: Sat, 11 Nov 2000 17:39:12 +0100 |
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@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]De la part de edmund mitchell Envoyé : samedi 11 novembre 2000 06:51 À : xsl-list@xxxxxxxxxxxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
XPath help, edmund mitchell | Thread | XPath help, Robert Koberg |
Converting attributes into child el, jlangdon | Date | Re: Converting attributes into chil, Steve Muench |
Month |
Keywords