title: Extract time from a DateTime string on xsl 1.0
body: <p>I've got an xml file full of this nodes:</p>
  
  <pre><code>&lt;FlightSegment DepartureDateTime="2014-05-02T14:24:00" ArrivalDateTime="2014-05-02T15:42:00"/&gt;
  &lt;FlightSegment DepartureDateTime="2014-05-02T16:24:00" ArrivalDateTime="2014-05-02T17:42:00"/&gt;
  </code></pre>
  
  <p>And i need to extract just the time of the @DepartureDateTime and @ArrivalDateTime in a html output. So far, i made a xsl:for-each and a xsl:value-of that returns the full string, but i tried using the fn:hours-from-dateTime and it doesn't work. Either i'm doing something wrong, or it only works in 2.0.
  How can i get just the time from this string?</p>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;table&gt;
          &lt;xsl:for-each select="FlightSegment"&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                    Departure:
                  &lt;/td&gt;
                  &lt;td&gt;
                     &lt;fn:hours-from-dateTime(xsl:value-of select="@DepartureDateTime")/&gt;:&lt;fn:minutes-from-dateTime(xsl:value-of select="@DepartureDateTime")/&gt;:&lt;fn:seconds-from-dateTime(xsl:value-of select="@DepartureDateTime")/&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                     Arrival:
                  &lt;/td&gt;
                  &lt;td&gt;
                     &lt;fn:hours-from-dateTime(xsl:value-of select="@ArrivalDateTime")/&gt;:&lt;fn:minutes-from-dateTime(xsl:value-of select="@ArrivalDateTime")/&gt;:&lt;fn:seconds-from-dateTime(xsl:value-of select="@ArrivalDateTime")/&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/xsl:for-each&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Thanks in advance. </p>