RE: [xsl] last(): selecting the last one?

Subject: RE: [xsl] last(): selecting the last one?
From: Jarkko.Moilanen@xxxxxx
Date: Mon, 22 Apr 2002 14:50:19 +0300 (EEST)
The situation is a bit more complex than that and I did not express my
self clearly....  

The sorting is done by this kind of syntax:
Sort the topics by date and then sort by clocktime. The final 
soring is done by the topic. (actually the sorting is more
complex, but this here needs so far)So the message 
order is actually like this:
 

   message0 11.10.2001 05:56 topic:harjoitus
   message1 12.10.2001 09:45 topic:re:harjoitus
   message2 13.10.2001 06:23 topic:re:harjoitus
   message3 12.10.2001 11:34 topic:kysmys 
   message4 12.10.2001 12:45 topic:re:kysmys  
   
 and so on...
> 
> > when xml-file contains several elements (information)and they 
> > have element which
> > tells the date of input and then there is element that tells the
> > clock time of input and another element called subject.  
> > 
> > How can I find out which one is the last one and
> > then select it's subject elements content? 
> 
> Sort them by date and time (in that order) and then select the
> position() = last().

So, if I sort them by that, the order is broken. Can this be done by using 
some kind of idea like: 
check the attribute values time and clock (in that order) and select the
one which has "highest value" in both of them?

Cheers
Jarkko


*******************************************************************
Jarkko Moilanen         *You are wise, witty, and wonderful,      *
Researcher/ ITCM        *but you spend too much time              *
jarkko.moilanen@xxxxxx  *reading this sort of trash.              *
www.uta.fi/~jm60697     *                                         *
GSM: +358 50 3766 927   *                                         *
*******************************************************************
* ITCM Information Technology and Crisis Management               *
*******************************************************************

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


Current Thread