Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-595

EXSLT date-time function missing + or - before timezone offset

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: None
    • Component/s: XalanC
    • Labels:
      None
    • Environment:
      AIX and Windows

      Description

      The exslt function date-time() returns a datetime that is not conform the specification.
      It is missing the + or - sign before the timezone offset.
      It should be e.g:
      2006-01-18T18:55:41+01:00

      But the function returns:
      2006-01-18T18:55:4101:00

      This is not conform specification.
      see: http://exslt.org/date/functions/date-time/index.html

      Sample stylesheet:

      <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0"
      xmlns:date="http://exslt.org/dates-and-times"
      >

      <xsl:template match="/">
      <foo><xsl:value-of select="date:date-time()" /></foo>
      </xsl:template>

      </xsl:transform>

        Attachments

        1. patch.diff
          0.8 kB
          Dmitry Hayes

          Activity

            People

            • Assignee:
              dmitryh Dmitry Hayes
              Reporter:
              koskm00 Maarten Koskamp
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: