xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen Yang" <cy...@hrsg.ca>
Subject xslt 2.0 month name
Date Wed, 06 Apr 2011 18:06:16 GMT
Hey guys,

 

I'm using xslt fn:formate-dateTime() to get the current date and time,
for English it's works fine. 

 

But everytime I try to get the month name in different
languages(fr,de,etc),I will just get the current date and time with
[Language: en] in the front and couldn't get the month name in that
language.

 

Date Created: [Language: en] 06/April/2011

 

Here is my code, Could someone tell me what I'm doing wrong here.

 

<xsl:value-of
select="format-dateTime(current-dateTime(),'[D01]/[MNn]/[Y0001]','de','A
D','DE')"/>

 

Or

 

<xsl:value-of select="format- dateTime (current- dateTime
(),'[D01]/[MNn]/[Y0001]','fr','AD','FR')"/>

 

I'm using Saxon 9 with Fop 1.0 running on tomcat 7

 

Best Regards,

 

Chen Yang

 

 


Mime
View raw message