Using an xsl:key index

Here’s our index:


            ]]>

Here’s how we can use it to accomplish the same job as before:


                
                ]]><xsl:text> (</xsl:text>
                <xsl:value-of select="key('roles', parent::sp/@who)/roleDesc"/>
                <xsl:text>)</xsl:text>
            ]]>
XSLT Keys, slide 6 of 9