I've got (XML):
Code:
<root>
<node1> bla bla </node1>
<node2> bla bla </node1>
<node3> bla bla </node1>
<node4> bla bla </node1>
<node5> bla bla </node1>
</root>
I've got (XSLT):
Code:
<xsl:call-template name="FOO">
<xsl:with-param name="number" select="1"/>
</xsl:call-template>
and the template:
Code:
<xsl:template name="FOO">
<xsl:param name="number"/>
<xsl:copy-of select="concat(node,$number)"/>
</xsl:template>
I wanna copy-of node1, node2, node3
but the
concat(node,$number) is not the right way
(Can not convert #STRING to a NodeList!)
is there a solution?
xslt learner :)