I would like to fix my xslt so that my
<StartDateTime>NaN-NaN-NaNTNaN:NaN:NaN-NaN:00</StartDateTime>
does not look like this. I would like to have the date and time instead.
My 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="ChargeDispSent" MessageID="670">
<Case InternalID="16170" ID="12" xmlns:user="http://tylertechnologies.com">
<SentenceEvent ID="1606">
<Sentence ID="776">
<SentenceCharge>
<ChargeID InternalChargeID="1616">1091</ChargeID>
</SentenceCharge>
<Additional>
<HomeMonitoringComponent>
<Duration Op="E">
<StartDate>11/03/2015</StartDate>
<EndDate>12/02/2015</EndDate>
<StartTime Op="E">8:00 AM</StartTime>
<EndTime Op="E">9:00 AM</EndTime>
</Duration>
</HomeMonitoringComponent>
</Additional>
</Sentence>
</SentenceEvent>
</Case>
My xslt that formats and displays the date looks like this
<xsl:if test="string-length(Duration/StartDate) > 0">
<xsl:for-each select="Duration">
<DispositionDurationalElement>
<StartDateTime>
<xsl:value-of select="mscef:formatDateTime(string(concat(Duration/StartDate, ':', Duration/StartTime)))"/>
</StartDateTime>
<xsl:if test="string-length(Duration/EndDate)!=0">
<EndDateTime>
<xsl:value-of select="mscef:formatDateTime(string(concat(Duration/EndDate, ':', Duration/EndTime)))"/>
</EndDateTime>
</xsl:if>
</DispositionDurationalElement>
</xsl:for-each>
</xsl:if>
My output looks like this
<DispositionDurationalElement>
<StartDateTime>NaN-NaN-NaNTNaN:NaN:NaN-NaN:00</StartDateTime>
</DispositionDurationalElement>