Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.6
-
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