I would like to create a template with a param, and using this param create an element with that name.
How can this be done?
This is a non-working example, but gives an idea of what I want to do.
<xsl:call-template name="parseOneValue">
<xsl:with-param name="name" select="'addr'" />
</xsl:call-template>
<xsl:template name="parseOneValue">
<xsl:param name="name"/>
<xsl:element name="$name">
<xsl:attribute name="at">local
</xsl:attribute>
</xsl:element>
</xsl:template>