Yuan Yijun (bbbush) wrote,
Yuan Yijun

读书 xslt cookbook

还有提到的 http://www2.informatik.hu-berlin.de/~obecker/XSLT/

对 exslt 不是很感兴趣,尽管看起来 xslt2 也需要一个 exslt2

比较有趣的是为 xslt 添加新的指令,chapter 10.9 中提到,可以添加 if..elif..else 和 loop,然后使用另一个 xslt 将这些语句转换为 xslt。这样就可以用熟悉的语法来写转换程序了。xsl:choose 和递归真的很别扭啊!

另一个比较有趣的是 generic/functional,可以绕过不允许将变量作为模板名来调用的限制。
可惜 msxml4 并不支持 func 之类的东西 :(

困。早晨眼睛疼,昨晚上两点才睡的。很奇怪,我的 640m 是 winxp sp2 中文版,公司里是 winxp sp2 英文版+中文支持。然而在家里装 gtk+-2.10.6 或者老版本之后,汉字显示仍然是小方块。在公司里就一切正常,曾经有过问题是因为 graphviz 的 freetype 版本不支持 unicode,但是卸掉就好了。还有,在我的机器上运行 msxsl.exe -t 可以显示每一步耗费的时间,在公司里就显示每一步都是 0 毫秒,真是太奇怪了。
Tags: 工作

  • BP 1st year

    Basic Program is a reading program from UChicago. The information can be found here [1] and currently it is open for signing up for the next year…

  • 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…

  • Crime and Punishment

    As a step to improve the illiterate situation I joined the Basic Program this year. It had been in my mind for a couple years, but glad this time I…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded