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: 'unique' element query


Use child[not(.=preceding-sibling::child)]

Mike Kay

> 	Say I have some XML that looks like this:
> 
> 	<rootelement>
> 		<child>1</child>
> 		<child>2</child>
> 		<child>2</child>
> 		<child>3</child>
> 	</rootelement>
> 
> 	And I want to do a query that returns only the elements 
> that have a unique value 


 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]