【发布时间】:2011-05-04 12:27:06
【问题描述】:
我需要显示日期,例如 2011 年 5 月 5 日,星期三 我在努力
<xsl:value-of select="format-date(
current-date(),
'[FNn,*-3], [D01] [MNn,*-3] [Y0001]',
'en',
'',
'US'
)" />
还有一个我试过了
<xsl:value-of select="format-date(
current-date(),
'[FNn], [MNn] [D1o], [Y]',
'en',
(),
()
)" />
两者都给了我关注。我需要文字,它只给出数字。我使用 XSLT 2.0
3, 5 4, 2011
【问题讨论】:
-
我知道您正在使用 XSLT2,但最终它可以在 XSLT1 中完成:geekswithblogs.net/workdog/archive/2007/02/08/105858.aspx
标签: xslt-2.0