title: XslCompiledTransform: attribute values incorrectly encoded
body: <p>I'm using <code>XslCompiledTranform</code> to transform XML/XSL.</p>
  
  <p>This is my test XSL:</p>
  
  <pre><code>&lt;span title="{./tooltip}" anattribute="{./tooltip}"&gt;
  &lt;xsl:value-of select="./tooltip"/&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>You can see that for testing I put the same XSL value, namely <code>@tooltip</code> into the <code>title</code> attribute, an undefined <code>anattribute</code> attribute and also as text into the node.</p>
  
  <p>In my XML the <code>@tooltip</code> is encoded like this "<code>this is a &amp;lt;script&amp;gt; tag</code>". To be more precise: there are no HTML tags in the value. Everything is encoded, hence the <code>&amp;lt;</code> and <code>&amp;gt;</code></p>
  
  <p>If I transform the above I get as result:</p>
  
  <pre><code>&lt;span title="this is a &lt;script&gt; tag" anattribute="this is a &lt;script&gt; tag"&gt;
  this is a &amp;lt;script&amp;gt; tag
  &lt;/span&gt;
  </code></pre>
  
  <p>Why is keeping the encoding for node values and why is it substituting the encoded values for attributes? And most important: how can I stop <code>XslCompiledTransform</code> from behaving like that? I want my attributes <strong>exactly</strong> the way I specified them and no magic conversion going on.</p>
  
  <p>My settings are as follows:</p>
  
  <pre><code>var oXSL = new XslCompiledTransform( );
  XsltSettings oXslSettings = new XsltSettings( );
  XmlUrlResolver oUriResolver = new XmlUrlResolver( );
  oXslSettings.EnableDocumentFunction = true;
  oXslSettings.EnableScript = false;
  oXSL.Load( sXslPath, oXslSettings, oUriResolver );
  </code></pre>
  
  <p>René</p>