XSLT中的DISTINCT和GROUP

主要思想,要考虑两个函数,key和generate-id

key, 对于string node返回一个string node (string function)。

generate-id, 对每一个节点(node),生成唯一的字符串标识(unique string identifier)。

参考:

http://www.w3.org/TR/xslt#key

Q: How do I count the number of elements with a given attributevalue?

上篇的翻译: XSLT问答:分组、计数和上下文

No comments yet. Be the first.

Leave a reply

Random posts

  • 04年小白赠诗
  • 解决在firefox中word-wrap, word-break的问题
  • 积水潭医院回龙观院区
  • 从google earth上看龙泽站的黑车
  • XSLT中的DISTINCT和GROUP