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
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: