|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








