I would like to sort the EventTime
from the sample xml document I have pasted. I want to display the most recent EventTime
.
My sample xml document
<Integration xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:tsg="http://tsgweb.com" xmlns:IXML="http://tsgweb.com" xmlns:CMCodeQueryHelper="urn:CMCodeQueryHelper" PackageID="IXML Case Notification Test" MessageID="67085056" xmlns="">
<Case InternalID="1617090499" ID="12125626" xmlns:user="http://tylertechnologies.com">
<CaseEvent Date="05/22/2015" ID="160828152" InternalEventID="1721879467" xmlns:reslib="urn:reslib">
<EventTime>8:49 AM</EventTime>
</CaseEvent>
<CaseEvent Date="05/28/2015" ID="160828600" InternalEventID="1721879818" xmlns:reslib="urn:reslib">
<EventTime>1:39 PM</EventTime>
</CaseEvent>
</Case>
</Integration>
xsl line of code to sort which is not working
<xsl:sort select="substring-after-last(EventTime)" order="descending"/>