[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Removing duplicates based on set of identifiers
Hi,
You can use xs:for-each-group. For example if you join the tag ids as the grouping key then you will get a stylesheet like below: <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="doc"> <xsl:for-each-group select="odo" group-by="string-join(tag/@id, '-')"> <xsl:copy-of select="."/> </xsl:for-each-group> </xsl:template> </xsl:stylesheet> Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Kolda, Marcin wrote: Hi,
|
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
|