I have any param
<xsl:param name='param_1'/>
<xsl:param name='param_2'/>
...
<xsl:param name='param_100'/>
and any templates for items with id='1', id='2' ... id='100'
<xsl:template match='item[@id="1"]'>
<xsl:value-of select='$param_1'/>
</xsl:template>
<xsl:template match='item[@id="2"]'>
<xsl:value-of select='$param_1'/>
</xsl:template>
...
...
<xsl:template match='item[@id="100"]'>
<xsl:value-of select='$param_100'/>
</xsl:template>
How to combine items into a single template?
Something like this:
<xsl:template match='item[@id="1" or @id="2" or @id="100"]'>
<xsl:variable name='id' select='@id'/>
<xsl:value-of select='$param_$id'/>
</xsl:template>
xsl:choose not good, items and params very much.