title: Mapping XML values via XSLT
body: <p>Have looked around at all the xslt mapping questions but cant seem to find help with the following specific case:</p>
  
  <p>I have a xml file for example with the following values</p>
  
  <pre><code>&lt;rate&gt;
  &lt;code&gt;AB&lt;/code&gt;
  &lt;code&gt;CD&lt;/code&gt;
  &lt;code&gt;EF&lt;/code&gt;
  &lt;/rate&gt;
  </code></pre>
  
  <p>These codes appear throughout my xml which I am outputting via the xslt.
  However whenever the xslt outputs these specific codes it needs to first map them to new values
  For eg the mapping would be as follows:</p>
  
  <pre><code>Code AB -&gt; YZ
  Code CD -&gt; WX
  Code EF -&gt; QR
  </code></pre>
  
  <p>Please can someone show me if and how its possible to perform this mapping throughout the xslt bearing in mind again that these rate codes can appear throughout the xml at various places and also that the xslt is doing a lot more than just this mapping.</p>
  
  <p>Thanks</p>