title: Xsl &#xA; for new line in transformation
body: <p>I've this code :</p>
  
  <pre><code>&lt;a&gt;
     &lt;xsl:attribute name="href"&gt;
          &lt;xsl:value-of select="$foo"/&gt;
     &lt;/xsl:attribute&gt;
     bar
  &lt;/a&gt;
  </code></pre>
  
  <p>the probleme is after transformation I get :</p>
  
  <pre><code>&lt;a href="&amp;#xA;                PooValue        &amp;#xA;"                 &gt;bar&lt;/a&gt;
  </code></pre>
  
  <p>My xsl:output is with indent="no".</p>
  
  <p>Visual studio indent all the files. So put the code in one line work but </p>
  
  <pre><code>&lt;a&gt;&lt;xsl:attribute name="href"&gt;&lt;xsl:value-of select="$foo"/&gt;&lt;/xsl:attribute&gt;bar&lt;/a&gt;
  </code></pre>
  
  <p>first is not very readable and VS will change me the indent so I want another solution.
  kind of : </p>
  
  <pre><code>&lt;xsl:attribute name="href" select="concat(mystuff)" /&gt;
  </code></pre>
  
  <p>but it doesn't exist and it is no very readable again. </p>
  
  <p>Other solution may be :</p>
  
  <pre><code>&lt;a href="{$foo}" &gt;bar&lt;/a&gt;
  </code></pre>
  
  <p>but and How can I use xsl treatment like below with this :</p>
  
  <pre><code>&lt;a&gt;
         &lt;xsl:attribute name="href"&gt;
               &lt;xsl:choose &gt;
                   &lt;xsl:when test="$atest"&gt;
                      &lt;xsl:value-of select="$foo"/&gt;
                   &lt;/xsl:when&gt;
                   &lt;xsl:otherwise&gt;
                      &lt;xsl:value-of select="$foo2"/&gt;
                   &lt;/xsl:otherwise&gt;
               &lt;/xsl:choose &gt;
         &lt;/xsl:attribute&gt;
         bar
      &lt;/a&gt;
  </code></pre>
  
  <p>Use :
  <code>&lt;xsl:value-of select="normalize-space($foo)"/&gt;</code> will have no effect cause :<br>
   <code>&amp;#xA;</code> is created between<br>
   <code>&lt;xsl:attribute name="href"&gt;</code> and <code>&lt;xsl:value-of select="normalize-space($foo)"/&gt;</code></p>
  
  <p>I work in <code>xslt 1.0</code> <code>C# .net 4</code> with <code>XslCompiledTransform</code></p>
  
  <p>More details :
    I put the result of my XslCompiledTransform in a </p>