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

RE: last(): selecting the last one?

Subject: RE: last(): selecting the last one?
From: Jarkko.Moilanen@xxxxxx
Date: Mon, 22 Apr 2002 14:50:19 +0300 (EEST)
RE:  last(): selecting the last one?
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

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.