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


> 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.

<xsl:key name="names" match="@name" use="."/>

select="//@name[count(key('names',.)=1]/.."

Mike Kay


 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]