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

Re: Re: Sorting on two levels

Subject: Re: Re: Sorting on two levels
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Apr 2015 16:25:33 -0000
Re:  Re: Sorting on two levels
Michele R Combs mrrothen@xxxxxxx wrote:
I did try  <xsl:apply-templates select="current-group()">, thinking
it would just go through and apply the existing indexterm, primary,
secondary templates -- but I got the entire group in a chunk, it
didn't seem to apply templates to each element  individually.  I'll
go back and look, maybe I did something wrong there.  I wasn't using
mode, maybe that was the problem.

Doing the apply-templates on the group to use existing templates sounds like the right idea, I don't know why it did not work.
I only put in a mode to allow a processing step different from the normal handling.



Last question: if I want to do something at the end of each group,
I'd put that instruction right before the </xsl:for-each-group>,
correct?


Well thinking about it imperatively like "to do something at the end of each group" is not the right approach with a declarative language but the for-each-group contains a sequence constructor evaluated for each group and if you want to generate some output at the end of the sequence then do that by putting the instruction right before the closing </xsl:for-each-group>, that's right.

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.