Hi Shawn,
<xsl:key name="index-by-primary" match="indexItem" use="@secondary" />
A little confusion between primary and secondary... you surely meant use="@primary" here? HTH :) Anton Triest