How to select unique nodes

前端 未结 5 945
轮回少年
轮回少年 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:21

    The Muenchian method uses keys to create a unique list of items from the node set. For your data, the key would look like this:

    
    
    

    From there, I would personally use xsl:apply-templates but you can use the following select attribute in other places:

    
    
    

    The accompanying match for the above is much simpler:

    
        Age: 
    
    

提交回复
热议问题