Subject: Re: 2 level sorting From: Shekhar Kshirsagar <skshirsa@xxxxxxxxxxxxxxxxxx> Date: Mon, 08 Mar 1999 09:08:53 -0500 |
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 |
---|
<- Previous | Index | Next -> |
---|---|---|
2 level sorting, 6tk2 | Thread | Re: 2 level sorting, 6tk2 |
2 level sorting, 6tk2 | Date | Fw: XSL-T, XTL.... or XQL?, Oren Ben-Kiki |
Month |