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

Subject: RE: [xsl] last(): selecting the last one?
From: Jarno.Elovirta@xxxxxxxxx
Date: Mon, 22 Apr 2002 14:04:17 +0300
Heppa,

> 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().

Cheers,

Santtu

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


Current Thread