View Single Post
  #2 (permalink)  
Old March 12th, 2004, 08:48 AM
pgtips pgtips is offline
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

I don't know of any way to dynamically create selection paths. If you had written your xml like this instead:
   <node num="1"> bla bla </node>
   <node num="2"> bla bla </node>
   <node num="3"> bla bla </node>
   <node num="4"> bla bla </node>
   <node num="5"> bla bla </node>
then you could just use
<xsl:copy-of select="node[@num=$number]"/>
Reply With Quote