View Single Post
  #1 (permalink)  
Old March 12th, 2004, 08:30 AM
Baldo Baldo is offline
Registered User
 
Join Date: Nov 2003
Location: , , Italy.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default select="node1", select="node2"...

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 :)
Reply With Quote