[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Creating unique groups
I think a code like the following would help. I assume that entries are unique per each group. <xsl:template match="/"> <root> <xsl:for-each select="/root/group"> <xsl:if test="not( following-sibling::group[ current()/@name = @name ] )"> <group name="{@name}"> <xsl:copy-of select="/root/group[ current()/@name = @name ]/entry"/> </group> </xsl:if> </xsl:for-each> </root> </xsl:template> ------------------------- Marian http://www.utdallas.edu/~mgo031000/ __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail
|
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
|