Saxon XSLT 2.0和RFC 822日期格式

cha*_*dex 5 xslt saxon rfc822 xslt-2.0 xpath-2.0

将xs:dateTime格式化为RFC 822的正确方法是什么?

小智 5

你需要fn:format-dateTime

我认为它应该是:

format-dateTime(current-dateTime(),
                '[FNn,*-3], [D01] [MNn,*-3] [Y0001] [H01]:[m01]:[s01] [Z]',
                'en',
                '',
                'US')
Run Code Online (Sandbox Code Playgroud)

现在,对我来说,输出:

Thu, 07 Oct 2010 21:10:03 -03:00
Run Code Online (Sandbox Code Playgroud)