Yuan Yijun (bbbush) wrote,
Yuan Yijun

最奇怪的一个 xsl 语句 xsl:decimal-format

一旦使用 decimal-format,format-number 就不再可移植,必须用另外一个 template 来调用 format-number,并将这个 template 与 decimal-format 放在同一个可替换的文件中

这样的 xslt 真是太烦了 :( 我想要的是两个功能:对所有数字,小数点后保留两位,并且使用 — 替换 NaN 和 Inf. 但是没办法在一个 decimal-format 里面指定这些

xsl:number 是另一个可以格式化数字的地方,真是 confusing
Tags: 工作

  • My tweets

    Wed, 09:34: WIthout threading support, Outlook managed to introduce "Focused" and "Other" as tabs in the inbox. Now I got two inbox to check.

  • My tweets

    Tue, 11:06: With IntelliJ IDEA it is really hard to tell which window is "active" by looking at the taskbar icon. The project n……

  • My tweets

    Sun, 21:01: Scared a little bit https://t.co/MQI4IPzfDa Sun, 22:07: https://t.co/22J8hD4xrp ugly paradise

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded