This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: last(): selecting the last one?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]