[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Creating unique groups

Subject: Re: Creating unique groups
From: Marian Olteanu <mou_softwin@xxxxxxxxx>
Date: Fri, 3 Dec 2004 23:20:06 -0800 (PST)
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 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.