This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: last(): selecting the last one?
- From: Jarno dot Elovirta at nokia dot com
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 22 Apr 2002 14:04:17 +0300
- Subject: RE: [xsl] last(): selecting the last one?
- Reply-to: xsl-list at lists dot mulberrytech dot com
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