title: How can I translate &#039; into an apostrophe in xslt
body: <p>The relevant parts of the code:</p>
  
  <pre><code>&lt;xsl:variable name="apos"&gt;'&lt;/xsl:variable&gt;
  &lt;xsl:variable name="and" select='"&amp;#039;"' /&gt;
  
  &lt;xsl:value-of select="translate(products_name/node(),$and,$apos)"/&gt;
  </code></pre>
  
  <p>I'm thinking this should be a simple thing and that the above code should work but it doesn't effect the output at all.</p>
  
  <p>(I used variables because names cannot begin within an ampersand and using just an apostrophe brings up a compile error.)</p>
  
  <p>I've tested the code to make sure the translate is working using strings and there are no errors there.</p>
  
  <p>Any help would be greatly appreciated.</p>