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

Re: 2 level sorting

Subject: Re: 2 level sorting
From: Shekhar Kshirsagar <skshirsa@xxxxxxxxxxxxxxxxxx>
Date: Mon, 08 Mar 1999 09:08:53 -0500
xsl sort 2 level
Hi,

For IE5b2, you can use template with following clause:
	order-by="+field-A;+field-B"
which should sort according to 'field-A' first and then for each 
'field-A' sort it according to 'field-B'.

As per the XSL Spec the syntax is giving two sort clauses as follows:
	<xsl:sort select="field-A"/>
	<xsl:sort select="field-B"/>

Apparently, I couldn't get this syntax working in IE5, but the earlier 
one with 'order-by' works fine.

Regards,
Shekhar Kshirsagar
Nortel Networks

DISCLAIMER:    
The views expressed here are my own and may not reflect those of Nortel
Networks.







At 07:59 AM 3/8/99 -0500, you wrote:
>
>Hi, 
>
>I am part of a group of students trying to figure out a way
>to produce a 2 level sort of the same XML data.
>
>My definition of a 2 level sort:
>Sort by field A
>
>Sort by the new flow of data produced by the previous XSL sort.
>
>Example
>
>field A contains dates, sort from most recent 
>Take that sorted data and reapply a second sort to field B.  For example, 
>
>
>Date       priority
>
>
>We want the priority of the email received to from greatest to least.
>The primary sort is no problem, but reapplying on the newly created
>output is becoming one.
>
>Today      High
>Today      Medium
>Today      Low
>Today      Low
>Yesterday  High
>
>We have to work on the same XML data that has been sent to the machine
>initially.
>
>Any suggestions?
>Trevor.
>
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread
  • 2 level sorting
    • 6tk2 - Mon, 8 Mar 1999 07:59:51 -0500 (EST)
      • <Possible follow-ups>
      • Shekhar Kshirsagar - Mon, 08 Mar 1999 09:08:53 -0500 <=
        • 6tk2 - Wed, 10 Mar 1999 23:25:56 -0500

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.