Code:
<xsl:for-each select="$r/plan[generate-id() = generate-id(key('type', @plantype)[1])]">
<td>
<xsl:value-of select="field[$p]/fieldvalue" disable-output-escaping="yes"/>
</td>
</xsl:for-each>
The code above basically retrieves a plan regardless of plantype.
Assuming I have a variable $currentplantype (contains current plantype), what would I need to modify so that it will just iterate plans with the plantype of $currentplantype?