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

RE: XSL Processing to avoid repetitions

Subject: RE: XSL Processing to avoid repetitions
From: "Fabien Tillier" <f.tillier@xxxxxxxx>
Date: Wed, 16 Jun 2010 16:36:33 +0200
RE:  XSL Processing to avoid repetitions
Yes !
Sorry for being so blind.
Your code works. It is just (I think) that I was messing with the way to set
the "fields"
Thanks a lot
Best regards,
Fabien


-----Message d'origine-----
De : Martin Honnen [mailto:Martin.Honnen@xxxxxx]
Envoyi : mercredi 16 juin 2010 16:30
@ : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Objet : Re:  XSL Processing to avoid repetitions

Fabien Tillier wrote:

> Thanks for your answer, but it doesn't work for me.
> I have resent a message with my real data.
> Maybe your solution would work if I don't change it to fit my data :)

Andrew already suggested what to do, you simply can nest for-each-group e.g.

<ol>
   <xsl:for-each-group select="/Results/Row" group-by="CONTRACT">
     <li>
       <xsl:value-of select="current-grouping-key()"/>
       <ol>
         <xsl:for-each-group select="current-group()" group-by="CODE">
           <li>
             <xsl:value-of select="current-grouping-key()"/>
             <ol>
               <xsl:for-each select="current-group()/NUMERO">
                 <li>
                   <xsl:value-of select="."/>
                 </li>
               </xsl:for-each>
             </ol>
           </li>
         </xsl:for-each-group>
       </ol>
     </li>
   </xsl:for-each-group>
</ol>

--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

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.