title: Cannot insert line break in attribute value via XSLT
body: <p>I'm new to XSLT, and I'm having a hard time inserting a line break between two sentences. I know similar questions have been asked in the forum but none of the solutions is working for me, I'm sorry if I'm breaking any community rule.</p>
  <p>So basically I have something like this:</p>
  <pre><code>&lt;xsl:attribute name=&quot;messageText&quot;&gt;
  &lt;xsl:value-of select=&quot;eligInformation/@messageText02&quot;/&gt;
  &lt;br /&gt;
  &lt;xsl:value-of select=&quot;eligInformation/@messageText03&quot;/&gt;
  &lt;/xsl:attribute&gt;    
  </code></pre>
  <p>But the <code>&lt;br /&gt;</code> or any of its variants (<code>&lt;br/&gt;, &lt;br&gt;&lt;/br&gt;</code>, etc) is not working, the .NET parser doesn't seem to like it and it throws the following error: &quot;An item of type 'Element' cannot be constructed within a node of type 'Attribute'&quot;.</p>
  <p>I've also tried with all sort of alternatives such as:</p>
  <pre><code>&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;
  </code></pre>
  <pre><code>&lt;xsl:text&gt;&amp;#10;&lt;/xsl:text&gt;
  </code></pre>
  <pre><code>&lt;xsl:text&gt;
  
  &lt;/xsl:text&gt;
  </code></pre>
  <p>etc., but in those cases, even though I don't get any errors, both messages simply appear in the same row.</p>