title: How to interpret HTML tags in attributes in XSL transformations?
body: <p>I've an existing functional transformation, that converts data XML files to nice and shiny HTML documents. </p>
  
  <p>Now I want to highlight some of data under special conditions. My first idea was to use some HTML tags.
  It works to a degree.</p>
  
  <p>The first important step is to enable HTML interpretation after the transformation in the XSLT file.</p>
  
  <pre><code>&lt;xsl:value-of select="$title" disable-output-escaping="yes"/&gt;
  </code></pre>
  
  <p>The problem, I believe, lies with the data. While text in tags can be expressed with CDATA ...</p>
  
  <pre><code>&lt;title&gt;&lt;![CDATA[&lt;b&gt;Title&lt;/b&gt;]]&gt;&lt;/title&gt;
  </code></pre>
  
  <p>... and works, data in attributes are much more doifficult to handle. First, CDATA can't work in attributes. So I tried HTML encoing.</p>
  
  <pre><code>&amp;lt;b&amp;gt;Text&amp;lt;/b&amp;gt;
  </code></pre>
  
  <p>But this won't interpret, it shows the HTML tags witzh or without the disable-output-escaping="yes" in the transformation. I asume the decoding of the tags is to late to interpret. </p>
  
  <p>Any ideas? I really appreciate any help you can provide.</p>