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

Re: Hierarchical grouping question

Subject: Re: Hierarchical grouping question
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 23 Aug 2002 19:57:58 +0100
hierarchical grouping
Hi Charles,

> I'm working on a hierarchical grouping stylesheet, basing my efforts
> on Jeni Tennison's "XSLT and XPath on the Edge", Chapter 9. My data
> set doesn't have any attributes on which to base grouping, rather I
> will base the grouping on the value of a child element (ROW/PERIOD).
> My first problem is with this element:
>
> <xsl:variable name="unique-rows" select="..." />
>
> Can anyone explain what the three periods represent? I understand
> that a single period represents the context element, and a double
> period represents the context element's parent, and in non-XPath
> ordinary usage, three periods are an elipsis, representing a
> continuation of material which is left out. I can't find any meaning
> for the three periods in this expression, and I've looked over and
> over at the text's example and those three are definitely there.

It's being used in the "non-XPath ordinary usage" -- an elipsis. The
bit of the chapter that you're looking at is describing the general
"hierarchical" grouping method. What you put in the select attribute
depends on the kind of grouping that you need to do (e.g. grouping by
position or grouping by a particular value).

If you go on into the next sections of the chapter, you'll see fuller
examples showing grouping in those different ways. Since you're
grouping by value, have a look at the "Grouping by Value" section, and
in particular "Grouping Unsorted Records by Value" on pages 216 to
221. That shows you how to complete the select attribute.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.