[xsl] saxon: [Language: en] in format-date()

Subject: [xsl] saxon: [Language: en] in format-date()
From: Leonid Schleicher <leonid@xxxxxxxxxxxxx>
Date: Tue, 27 Apr 2010 10:20:22 +0200

Output prefix [Language: en] in format-date() still not solved in saxon.
I've used latest saxon release - downloaded yesterday from sourceforge

to reproduce:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  exclude-result-prefixes="xs" version="2.0">
  <xsl:output method="text"/>
   <xsl:template match="/">
       <xsl:value-of select="format-date(current-date(), '[D]-[M]-[Y]')"/>

If system locale is differ than en, in output appears annoying prefix [Language: en]

To solve - use english system locale or use -Duser.language=en in java parameters

MfG, Leonid Schleicher

Current Thread