title: Error in for-each about XSL conversion
body: <p>I got a question about XSL and XML.
  I need to write '1' and '2' in the following example:</p>
  
  <p>XSL:</p>
  
  <pre><code>&lt;xsl:for-each select="bodytext/artigo"&gt;
   &lt;xsl:choose&gt;
   &lt;xsl:when test="@tip = '1'"&gt;
     &lt;h2&gt;1&lt;/h2&gt;
   &lt;/xsl:when&gt;
   &lt;xsl:when test="@tip = '2'"&gt;
     &lt;h2&gt;2&lt;/h2&gt;
   &lt;/xsl:when&gt;
   &lt;xsl:otherwise&gt;
    &lt;h2&gt;3&lt;/h2&gt;
   &lt;/xsl:otherwise&gt;
  </code></pre>
  
  <p>
      </p>
  
  <p>XML:</p>
  
  <pre><code>&lt;utilizador&gt;Manuel&lt;/utilizador&gt;
  &lt;sex&gt;M&lt;/sex&gt;
  &lt;artigo tip='1'&gt;
      &lt;nome&gt;A Mentira Sagrada&lt;/nome&gt;
      &lt;price&gt;12.99&lt;/price&gt;
      &lt;iva&gt;23 %&lt;/iva&gt;
      &lt;link&gt;9c6af52790&lt;/link&gt;
  &lt;/artigo&gt;
  &lt;artigo tip='2'&gt;
      &lt;nome&gt;A Mentira Sagrada&lt;/nome&gt;
      &lt;price&gt;12.99&lt;/price&gt;
      &lt;iva&gt;23 %&lt;/iva&gt;
      &lt;link&gt;u8Jp06blGQkKxdEbkoT0&lt;/link&gt;
  &lt;/artigo&gt;
  </code></pre>
  
  <p>I got only printed '1' and I need to be printed '1' and '2'.</p>
  
  <p>Extra Information:
  I understand right now the problem is related with '&amp;' sign. If I had the below XML with '&amp;' sign it doesn't work. If I remove it works but I needed it.</p>
  
  <pre><code>&lt;bodytext&gt;
      &lt;utilizador&gt;Criador Intelectual&lt;/utilizador&gt;
      &lt;sex&gt;M&lt;/sex&gt;
   &lt;artigo tip='1'&gt;
          &lt;nome&gt;A Mentira Sagrada&lt;/nome&gt;
          &lt;price&gt;12.99&lt;/price&gt;
          &lt;iva&gt;23 %&lt;/iva&gt;
          &lt;link&gt;http://q-ebooks.com.pt/fulfillment/URLLink.acsm?action=enterorder&amp;&lt;/link&gt;
       &lt;/artigo&gt;
   &lt;artigo tip='2'&gt;
          &lt;nome&gt;A Mentira Sagrada&lt;/nome&gt;
          &lt;price&gt;12.99&lt;/price&gt;
          &lt;iva&gt;23 %&lt;/iva&gt;
          &lt;link&gt;teste2&lt;/link&gt;
       &lt;/artigo&gt;
  &lt;/bodytext&gt;
  </code></pre>