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

Additional comments powered by BackType

Random posts