IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

no locals for format-date()? Options · View
Wabiloo
Posted: Thursday, November 5, 2009 12:20:48 PM
Rank: Member

Joined: 11/5/2009
Posts: 13
Location: UK
Hi,

When trying the following xslt function with XSLT2 (AltovaXML), the value returned was formatted for English, rather than French (as indicated by the second argument).
Am I doing something wrong, or is this not supported in Altova? (I know it works with Saxon for example)

<xsl:value-of select="format-date(xs:date('2001-07-05'), '[Fn] [D1o] [Mn], [Y]', 'fr', (), ())"></xsl:value-of>
Should have returned "jeudi 5 juillet, 2001" but instead returned "Thursday 5 July, 2001".

I could not find any information about this in the online manuals...
island
Posted: Friday, November 6, 2009 6:50:00 AM
Rank: Newbie

Joined: 10/28/2002
Posts: 1,283
Location: AT
Hi Wabiloo,

please note that the Altova XSLT engine does not provide support for the language argument i.e. this is ignored.
Wabiloo
Posted: Monday, November 23, 2009 3:08:40 PM
Rank: Member

Joined: 11/5/2009
Posts: 13
Location: UK
Was that information in the documentation somewhere? If so, can you indicate where as I must have missed that rather important page.

Many thanks
vlad
Posted: Monday, November 23, 2009 4:22:09 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
Implementation of support for particular languages is not a requirement by W3C, but is implementation-defined, i.e. every XSLT engine author may decide what languages to implement.

Which is no big deal though, because you can always add your functionality by means of templates, or in XSLT 2.0 your own functions.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.