title: XSLT enumeration mapping
body: <p>Using xsl to transformer one xml to another xml schema.</p>
  
  <p>how can i map enumeration of one xml with another.</p>
  
  <p>example:
  xsd 1:</p>
  
  <pre><code>&lt;xsd:element  name="Hindi"&gt;
  &lt;xsd:simpleType&gt;
      &lt;xsd:restriction base="xsd:string"&gt;
          &lt;xsd:enumeration value="Chay" /&gt;
          &lt;xsd:enumeration value="Roti" /&gt;
      &lt;/xsd:restriction&gt;
  &lt;/xsd:simpleType&gt;
  </code></pre>
  
  <p></p>
  
  <p>xsd 2:</p>
  
  <pre><code>&lt;xsd:element  name="Hindi"&gt;
  &lt;xsd:simpleType&gt;
      &lt;xsd:restriction base="xsd:string"&gt;
          &lt;xsd:enumeration value="Tea" /&gt;
          &lt;xsd:enumeration value="Bread" /&gt;
      &lt;/xsd:restriction&gt;
  &lt;/xsd:simpleType&gt;
  </code></pre>
  
  <p></p>
  
  <p>How can i map <code>chay</code> with <code>Tea</code> using xsl. </p>
  
  <p>Input xml:</p>
  
  <pre><code>&lt;Hindi&gt;Chay&lt;/Hindi&gt;
  </code></pre>
  
  <p>output xml: </p>
  
  <pre><code>&lt;Hindi&gt;Tea&lt;/Hindi&gt;
  </code></pre>