title: Substring template matching xslt
body: <p>I've struggled some time now. I just started with xslt, and I got things working just fine. Templates are used wherever possible and I've tried to keep myself from using for-loops. </p>
  
  <p>My problem is this: I have a number of nodes with similar names, only difference is a postfix number from 1 to (currently) 5. These should all be transformed into a node without the numbers. So basically, here is what I have:</p>
  
  <pre><code>&lt;title1&gt;some title&lt;/title1&gt;
  &lt;some_other_nodes&gt;....&lt;/some_other_nodes&gt;
  &lt;title2&gt;some title2&lt;/title2&gt;
  .
  .
  .
  &lt;title5&gt;....&lt;/title5&gt;
  </code></pre>
  
  <p>And this is what I want:</p>
  
  <pre><code>&lt;title&gt;some title&lt;/title&gt;
  .
  .
  .
  &lt;title&gt;some title2&lt;/title&gt;
  .
  .
  .
  &lt;title&gt;....&lt;/title&gt;
  </code></pre>
  
  <p>Is it possible to do substring matching with templates (matching just the title-part)? </p>
  
  <p>Thanks for your help!</p>