Walk/loop through an XSL key: how?
Posted
by krisvandenbergh
on Stack Overflow
See other posts from Stack Overflow
or by krisvandenbergh
Published on 2010-05-03T12:11:34Z
Indexed on
2010/05/03
12:18 UTC
Read the original article
Hit count: 339
Is there a way to walk-through a key and output all the values it contains?
I though of it this way:
<xsl:for-each select="key('kElement', '.')">
<li><xsl:value-of select="." /></li>
</xsl:for-each>
However, this does not work. I simply want to list all the values in a key for testing purposes.
The question is simply: how can this be done?
© Stack Overflow or respective owner