Page 1 of 1

How do I get the Status with the latest TimestampCreate?

Posted: Mon Jun 13, 2016 7:54 pm
by winkimjr2
I would like to get the Status with the latest TimestampCreate. How do I change my xslt to include the TimestampCreate instead of Date[/code]?

My xml doc

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<Integration>
<ProtectionOrder Op="E">
<Statuses>
<Status Op="A">
<Active>No</Active>
<Date Op="A">05/09/2016</Date>
<Type Op="A" Word="DISMISSED">Dismissed</Type>
<TimestampCreate Op="A">05/09/2016 14:34:48:633</TimestampCreate>
</Status>
<Status>
<Active>Yes</Active>
<Date>05/09/2016</Date>
<Type Word="SBJO">Signed By Judicial Officer</Type>
<TimestampCreate>05/09/2016 14:34:34:737</TimestampCreate>
</Status>
</Statuses>
</ProtectionOrder>
</Integration>
My xslt 1.0 code

Code: Select all

<xsl:value-of select="Statuses/Status/Date"/>