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

RE: Multi-grouping with keys (back of book index)

Subject: RE: Multi-grouping with keys (back of book index)
From: "Philip Vallone" <philip.vallone@xxxxxxxxxxx>
Date: Sun, 22 Oct 2006 08:55:18 -0400
RE:  Multi-grouping with keys (back of book index)
Thanks for the help. 

Michael, your suggestion works. It now groups according to Letter
(substring(@name,1,1)). I am having trouble grouping in the second level
(@name). For example if xml document 1 has a @name = "GMM" and xml document
2 has a @name = "GMM" it lists them under 'G', but separate e.g.

G

GMM
- Ferry Flight
- Policy

GMM
- Fueling

I will continue to work on it. My thought is I have to rework the Second
<for-each-group>

<xsl:for-each-group select="current-group()" group-by="@name">
						<span style="color:blue;">
							<xsl:value-of
select="current-grouping-key()"/>
						</span>
						<xsl:for-each
select="current-group()">
							<xsl:sort
select="."/>
							<ul>
								<span
style="font-size:x-small;">
									<a
href="{'#'}{$book}">
	
<xsl:value-of select="."/>
									</a>
								</span>
							</ul>
						</xsl:for-each>
					</xsl:for-each-group>

Thanks for the help.

Phil V

-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx] 
Sent: Sunday, October 22, 2006 8:47 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Multi-grouping with keys (back of book index)

> May be this is probably:
> <xsl:copy-of select="document('{.}')//indexterm" />

No, you never use curly braces inside an XPath expression. You just want

document(.)//indexterm

Michael Kay
http://www.saxonica.com/

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.