How to select unique nodes

前端 未结 5 938
轮回少年
轮回少年 2020-12-03 01:40

I found this page describing the Muenchian method, but I think I\'m applying it wrong.

Consider that this would return a set of ages:

/doc/class/pers         


        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-03 02:34

    For those who still look for a select distinct in XSLT:

    With XSLT 2.0, you can use "distinct-values(/doc/class/person/descriptive[(@name='age')]/value)"

提交回复
热议问题