| 
 
Subject: RE: [xsl] Grouping and Sorting on value inside group From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 11 Jun 2002 17:48:40 -0400  | 
I finally found the answer. Your use of [@dataid = current()/@dataid] provided the missing clue:
<xsl:for-each select="(//dataset/*/*[generate-id() = generate-id(key('dataids', concat(local-name(..),@dataId)))])"> <xsl:sort select="parent::node()/*[local-name() = $sortcol and @dataId = current()/@dataId]/value"/>
The last step is to look at using more keys. I'd still like to know if I can use a key or some combination of keys to eliminate the //dataset reference in the for-each...(anyone)???
(//dataset/*/*[generate-id() =
               generate-id(key('dataids', concat(local-name(..),@dataId)))])Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] Grouping and Sorting on v, Hunsberger, Peter | Thread | RE: [xsl] Grouping and Sorting on v, Hunsberger, Peter | 
| [xsl] Removing Newlines, Greg Kushmerek | Date | Re: [xsl] Removing Newlines, Wendell Piez | 
| Month |