You can use max(time/ending/xs:dateTime(.)), or you can sort time element using
<xsl:sort select="xs:dateTime(ending)"/>
and choose the last.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|