title: inserting HTML into CDATA section via xsl:value-of select
body: <p>I have a source XML that contains a tag with HTML. It was created from a clumsy CSV file.</p>
  
  <p>The goal is to transform the source XML into a second XML
  Using the following, </p>
  
  <pre><code>&lt;Description type="long" format="html"&gt;
    &lt;![CDATA[             
      &lt;xsl:value-of select="HTML_Descr"/&gt;
   ]]&gt;
  &lt;/Description&gt;
  </code></pre>
  
  <p>Unfortunately that XSL transforms as follows</p>
  
  <pre><code>&lt;Description type="long" format="html"&gt;
    &lt;![CDATA[             
      &amp;lt;xsl:value-of select="HTML_Descr"/&amp;gt;
   ]]&gt;
  &lt;/Description&gt;
  </code></pre>
  
  <p>The output makes sense on reflection, but the goal is simply wrapping the HTML within CDATA.</p>
  
  <p>NOTES:
  - It is not possible to put CDATA into the source XML.
  - More accurately, a source XML file is 100s of XML files
  - The processor is xsltproc, using XSL 1.0</p>
  
  <p>Sorry. The copious helps found were simply preserving HTML format.
  Thanks in advance.</p>
  
  <p>Addendum</p>
  
  <p>The full process is 
  CSV -> XML(temporary translation using CSV headers) -> XML (good) -> (X)HTML. </p>
  
  <p>And the HTML cannot be translated from the temp XML because the good XML is maintained in a repository -- and updated on an ongoing basis. </p>