title: How to print the literal string of '&#32' at the output of my transformation
body: <p>I am trying to do a transformation xsl to xsl document using namespace-alias. I face problem with passing literal value of an ASCII character in the output. </p>
  
  <p>This is the line I have in the input <strong>xsl</strong>:</p>
  
  <pre><code>&lt;xslAlt:variable name="result" select="translate({$var-name},'&amp;#32;','&amp;#160;')"/&gt;
  </code></pre>
  
  <p>This is what I get as an output:</p>
  
  <pre><code>&lt;xsl:variable name="result" select="translate(test-case-1-return,' ',' ')"/&gt;
  </code></pre>
  
  <p>And this is the output I dream of:</p>
  
  <pre><code>&lt;xsl:variable name="result" select="translate(test-case-1-return,'&amp;#32;','&amp;#160;')"/&gt;
  </code></pre>
  
  <p>In other words I don't want <code>'&amp;#32;','&amp;#160;'</code> expanded at the output. I want them as they are in the input document. </p>
  
  <p><strong>Thank you!</strong> </p>
  
  <p><strong>EDITION:</strong> The processor I am using in this transformation is Saxon (XSLT 2.0)</p>
  
  <p><strong>EDITION:</strong>
  I tried this:</p>
  
  <pre><code>&lt;xsl:character-map name="a"&gt;
     &lt;xsl:output-character character="&amp;#32;" string="&amp;#32;"/&gt;
     &lt;xsl:output-character character="&amp;#160;" string="&amp;#160;"/&gt;
  &lt;/xsl:character-map&gt;
  &lt;xsl:output indent="yes" use-character-maps="a"/&gt;
  
  &lt;xslAlt:variable name="result" select="translate({$var-name}, '&amp;#32;', '&amp;#160;')"/&gt;
  </code></pre>
  
  <p>But didn't work either. I don't get the literal string <code>&amp;#32;"</code> instead I get an empty spaces:</p>
  
  <pre><code>&lt;xsl:variable name="result" select="translate(test-case-1-return,  ,  )"/&gt;
  </code></pre>
  
  <p>as a result.</p>
  
  <p>I tried the transformation with another processor namely Xalan 1.0. and everything worked as I expected. I don't understand why it doesn't work that way with Saxon. You would say: Then why aren't you using Xalan processor? The answer is: There is no xslt 2.0 support and many functions doesn't work with that processor.</p>