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…

  • Yoga

    Yesterday JY learned a lot about Yoga poses. I keep saying that as "yogurt", no idea why. - Child's pose. Surprisingly hard for me! - Triangle -…

  • 坏人

    Jimmy had an obsession about bad guys. He wanted to be a bad guy in his star of the week report. He even wanted to live with bad guys. Then he asked…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded