title: xsl trying to ouput '<' as opposed to '&lt;'
body: <p>Update:</p>
  
  <p>The issue still persists although it is not quite the same as before. Below is an example of what is being input, what is being output and what I want to have output</p>
  
  <p>An example of the input:</p>
  
  <pre><code>&amp;amp;lt;p&amp;amp;gt;&amp;amp;lt;span style=&amp;amp;quot;font-size: medium&amp;amp;quot;&amp;amp;gt;Product description text&amp;amp;lt;/span&amp;amp;gt;&amp;amp;lt;/p&amp;amp;gt;
  </code></pre>
  
  <p>Current output:</p>
  
  <pre><code>&amp;lt;p&amp;gt;&amp;lt;span style="font-size: medium"&amp;gt;Product description text&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;
  </code></pre>
  
  <p>Intended output:</p>
  
  <pre><code>&lt;p&gt;&lt;span style="font-size: medium"&gt;Product description text&lt;/span&gt;&lt;/p&gt;
  </code></pre>
  
  <p>.</p>
  
  <p>Using CDATA has helped as it allows me to input '&lt;' but as seen in the output above, even when using disable-output-escaping, it has changed in the output</p>
  
  <p>.</p>
  
  <p>.</p>
  
  <p>Original question:</p>
  
  <p>The error I'm getting is "'&lt;', hexadecimal value 0x3C, is an invalid attribute character"</p>
  
  <p>What I'm trying to do is replace all occurrences of &amp;lt ; and &amp;gt ; with &lt; and > respectively.</p>
  
  <p>To keep this as simple as possible, here is the code for just lt;:</p>
  
  <pre><code>&lt;xsl:variable name="lt"&gt;
    &lt;xsl:text&gt;&lt;&lt;/xsl:text&gt;
  &lt;/xsl:variable&gt;
  &lt;xsl:variable name="lthex"&gt;&amp;amp;lt;&lt;/xsl:variable&gt;
  &lt;xsl:copy-of select="ew:replacestring(products_description/node(),$lthex,$lt)"/&gt;
  </code></pre>
  
  <p>I've tried various things in place of text e.g. value-of etc.</p>
  
  <p>I know there's nothing wrong with the code format and the vb code linked to it because I'm using it multiple times to replace and output elsewhere</p>
  
  <p>The problem with this though is that I want &lt; and > to literally be ouput, not a code which is then seen by the browser and changed</p>
  
  <p>.</p>
  
  <p>If you need more information just ask (I'm struggling to explain this very well)</p>
  
  <p>Any help will be appreciated</p>