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: 工作

  • 2020

    Last time I wrote a review was in 2018, about 2017. Or maybe I wrote something elsewhere, maybe on Twitter? It was hard to write something freely…

  • #thotcon badge?

    [root@m4700 ~]# esptool write_flash 0x00000 /home/yuan/tracking/thotcon0x9/tc0x9.bin esptool.py v2.3.1 Connecting.... Detecting chip type...…

  • Portfolio weighted averages

    Last week I got an assignment to make a small Java library for some often used portfolio calculations. A portfolio is a collection of holdings, each…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded