<p>What is the best way to include an html entity in XSLT?</p>

<pre><code>&lt;xsl:template match="/a/node"&gt;
    &lt;xsl:value-of select="."/&gt;
    &lt;xsl:text&gt;&amp;nbsp;&lt;/xsl:text&gt;
&lt;/xsl:template&gt;
</code></pre>

<p>this one returns a <strong>XsltParseError</strong></p>

You can use CDATA section
```
```
<xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;]]></xsl:text>
```
```
or you can describe &nbsp in local DTD:
```
```
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
```
```
or just use
```
&#160;
```
instead of
```
&nbsp;
```