title: XSLT: Apply the same template to nodes with different names
body: <p>I want to apply the same xsl:template to different nodes of an xml tree, preferably selecting by an attribute of the node. Here's an example of the XML tree:</p>
  
  <pre><code>&lt;journal&gt;
      &lt;claimantmonth&gt;
          &lt;By format="lookup"&gt;Bank dr/cr&lt;/By&gt;
          &lt;Month format="inputRO"&gt;4&lt;/Month&gt;
          &lt;Year format="inputRO"&gt;2012&lt;/Year&gt;
          &lt;claimslist&gt;
              &lt;claim&gt;
                  &lt;id format="hidden"&gt;867&lt;/id&gt;
                  &lt;enteredDate format="dateRO"&gt;2012-06-11&lt;/enteredDate&gt;
                  &lt;enteredBy format="lookup"&gt;chris&lt;/enteredBy&gt;
                  &lt;expenseDate format="date"&gt;2012-04-02&lt;/expenseDate&gt;
                  &lt;description format="text"&gt;Electric Co&lt;/description&gt;
              &lt;/claim&gt;
         &lt;/claimslist&gt;
      &lt;/claimantmonth&gt;
     &lt;/journal&gt;
  </code></pre>
  
  <p>I would want to use the same template for enteredDate and expenseDate, but a different one for description etc.</p>
  
  <p>I am very new to XSLT and I have searched in vain for an answer, so I just need a pointer to where to look. </p>
  
  <p>I found lots of examples of how to apply a variety of different templates to the SAME node. but that is not my problem.</p>