Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2099

EXSLT date:day-abbreviation outputs text in user's language instead of English

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6
    • 2.7
    • Xalan-extensions
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • PatchAvailable
    • fp4

    Description

      According to the EXSLT doc the extension date:day-abbreviation() should output a three-letter English day abbreviation: one of 'Sun', 'Mon', 'Tue', 'Wed', 'Thu' or 'Fri'. (See http://exslt.org/date/functions/day-abbreviation/index.html)

      Xalan 2.6.2 however does not output English but the current user's language.

      This is very easy to reproduce:

      The following three commands should all produce the same output but they don't:

      java -Djava.endorsed.dirs=. -Duser.language=nl -jar xalan.jar -IN input.xml -XSL exslt-date.xsl
      java -Djava.endorsed.dirs=. -Duser.language=fr -jar xalan.jar -IN input.xml -XSL exslt-date.xsl
      java -Djava.endorsed.dirs=. -Duser.language=en -jar xalan.jar -IN input.xml -XSL exslt-date.xsl

      Attachments

        1. exslt-date.xsl
          0.3 kB
          Litrik De Roy
        2. input.xml
          0.1 kB
          Litrik De Roy
        3. XALANJ-2099.patch
          1 kB
          Morris Kwan

        Activity

          People

            mkwan@ca.ibm.com Morris Kwan
            litrik Litrik De Roy
            Sarah McNamara Sarah McNamara
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: