How do I get the Status with the latest TimestampCreate?

Here should go questions about transforming XML with XSLT and FOP.
winkimjr2
Posts: 53

How do I get the Status with the latest TimestampCreate?

Mon Jun 13, 2016 7:54 pm

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"/>

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest