format-date() for non-English outputs [Language:en] - ID: 2837292 still open?

View: New views
2 Messages — Rating Filter:   Alert me  

format-date() for non-English outputs [Language:en] - ID: 2837292 still open?

by stf-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Mr. Kay,

I'm afraid that the bug "format-date() for non-English outputs
[Language:en] - ID: 2837292" is still open. I downloaded the latest
version from sourceforge (saxonhe9-2-0-3j.zip, with saxon9he.jar from
2009-10-22 11:58), but the error still occurs. Here is what I've done:

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

command line:
C:\Programme\Saxon\Saxon-Test>java -jar saxon9.jar trash.xsl trash.xsl
<?xml version="1.0" encoding="UTF-8"?>25-10-2009
C:\Programme\Saxon\Saxon-Test>java -jar saxon9he.jar trash.xsl trash.xsl
<?xml version="1.0" encoding="UTF-8"?>[Language: en]25-10-2009

I'm using WinXP pro SP3 (German) and java version 1.6.0_15.


Best regards,

Stefan Krause




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help 

Re: format-date() for non-English outputs [Language:en] - ID: 2837292 still open?

by Michael Kay :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


OK, sorry about that. I tested under simulated conditions, rather than by
actually changing the locale of the machine, and it seems I got it wrong.
I'll try again.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

> -----Original Message-----
> From: Stefan Krause [mailto:stf@...]
> Sent: 25 October 2009 01:27
> To: 'Mailing list for the SAXON XSLT and XQuery processor'
> Subject: [saxon] format-date() for non-English outputs
> [Language:en] - ID: 2837292 still open?
>
> Hello Mr. Kay,
>
> I'm afraid that the bug "format-date() for non-English
> outputs [Language:en] - ID: 2837292" is still open. I
> downloaded the latest version from sourceforge
> (saxonhe9-2-0-3j.zip, with saxon9he.jar from
> 2009-10-22 11:58), but the error still occurs. Here is what I've done:
>
> Stylesheet (trash.xsl):
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> exclude-result-prefixes="xs" version="2.0">
>
> <xsl:template match="/">
> <xsl:value-of
> select="format-date(current-date(), '[D]-[M]-[Y]')"/>
> </xsl:template>
> </xsl:stylesheet>
>
> command line:
> C:\Programme\Saxon\Saxon-Test>java -jar saxon9.jar trash.xsl
> trash.xsl <?xml version="1.0" encoding="UTF-8"?>25-10-2009
> C:\Programme\Saxon\Saxon-Test>java -jar saxon9he.jar
> trash.xsl trash.xsl <?xml version="1.0"
> encoding="UTF-8"?>[Language: en]25-10-2009
>
> I'm using WinXP pro SP3 (German) and java version 1.6.0_15.
>
>
> Best regards,
>
> Stefan Krause
>
>
>
>
> --------------------------------------------------------------
> ----------------
> Come build with us! The BlackBerry(R) Developer Conference in
> SF, CA is the only developer event you need to attend this
> year. Jumpstart your developing skills, take BlackBerry
> mobile applications to market and stay ahead of the curve.
> Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> saxon-help mailing list archived at
> http://saxon.markmail.org/ saxon-help@...
> https://lists.sourceforge.net/lists/listinfo/saxon-help 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help