RE: [xsl] sort by date

Subject: RE: [xsl] sort by date
From: "Aniceto Lopez" <aniceto@xxxxxxxxxxxxx>
Date: Tue, 26 Nov 2002 19:02:34 +0100
ok B, that's working prety good


-----Mensaje original-----
De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de Ben Robb
Enviado el: martes, 26 de noviembre de 2002 18:28
Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Asunto: RE: [xsl] sort by date

YYYY-MM-DDThh:mm:ss is the standard XML date format.

Sorting by date is easy when in this format (which is why it was chosen)
since ASCII-based sorting always gives the correct answer...


<xsl:for-each select="a4013-list/a4013>
	<xsl:sort select="@date"/>
	<xsl:value-of select="."/> [on date: <xsl:value-of
select="@date"/> ]



-----Original Message-----
From: Aniceto Lopez [mailto:aniceto@xxxxxxxxxxxxx] 
Sent: 26 November 2002 17:16
To: xsl-list
Subject: [xsl] sort by date

I'm trying to sort by date but the date format is
a little bit extrange:

  <a4013 date="1998-01-03T00:00:00">FRUTAS</a4013>
  <a4013 date="1999-12-03T00:00:00">FRUTAS</a4013>
  <a4013 date="1999-05-03T00:00:00">FRUTAS</a4013>
  <a4013 date="2001-12-03T00:00:00">FRUTAS</a4013>
  <a4013 date="2001-12-03T00:00:00">FRUTAS</a4013>
  <a4013 date="1999-07-03T00:00:00">FRUTAS</a4013>
  <a4013 date="1999-12-03T00:00:00">FRUTAS</a4013>
  <a4013 date="2002-12-03T00:00:00">FRUTAS</a4013>
  <a4013 date="2002-07-03T00:00:00">FRUTAS</a4013>

the "T00:00:00" has no use but some one can point an
idea to get the desired sort by date?

thanks in advance

 XSL-List info and archive:

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread