0

说你有format-time(current-time(), '[P]')

  • 撒克逊人将展示a.m.p.m.
  • 如果您使用[PN], Saxon 显示A.M.P.M.

是否可以像XSLT 2.0 规范的示例中那样获得am或?pm

4

1 回答 1

2

可以在格式图片字符串中指定最小/最大宽度,格式为min-max. 将长度限制为 2 会产生撒克逊语的预期结果,例如:

format-time(current-time(), '[P,2-2]')
于 2011-02-03T02:04:30.967 回答