Unique Sort

admin

Administrator
Staff member
I am wanting to sort and display a list of XML nodes that are repeated in the XML doc, but i only want to print each node once, regardless of the number of occurances in the XML. Sorting is easy enough, but the printing once part is beyond me. I have the list of nodes in a key

Anyone know how to do this?

One solution would be to loop through all the entries in an xls:key that i have created, but i dont know how to do this either, perhaps something like

<xsl:for-each select="key('key_name', *)">
<!-- blah -->
</xsl:for-each>

but not a *, instead a wildcard character

Thanks,

Toby
 
Back
Top