Jump to content

papanchatt

Members
  • Posts

    1
  • Joined

  • Last visited

papanchatt's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi Guys, I need to compare Date&TIme in XSLT taking input from XML file . Two dates are coming as a variable in XML file. That is Hire entry moment and Last Prior entry time. IF Hire_Entry_Moment (its a DAte time ) is greater than Prior_entry_time (its a date time as well) it should print N. otherwise print Pass. i have used the following code : <xsl:variable name="Hire_Entry_Moment" select="ws:Worker/ws:Additional_Information/ws:Hire_Entry_Moment"/> <xsl:variable name="Prior_Entry_Time" select="ws:Header/ws:Prior_Entry_Time"/> <xsl:choose><xsl:when test="($Hire_Entry_Moment > $Prior_Entry_Time)"> (not sure abt the logic)<xsd:element name="Col2"><xsl:text>"N"</xsl:text></xsd:element></xsl:when><xsl:otherwise><xsd:element name="Col2"><xsl:text>"Pass"</xsl:text></xsd:element></xsl:otherwise></xsl:choose> It is not giving correct output.. Can u guys suggest a way??
×
×
  • Create New...