I tried so:
<xsl:text> <xsl:text> — have no space character in html code;
<xsl:text> <xsl:text> — don’t work, XSLT processor error “Entity ‘nbsp’ not defined.”;
<xsl:text>&nbsp;<xsl:text> — obtained &nbsp; in html code, but no space character;
<xsl:text><![CDATA[ ]]> <xsl:text> — have no space character in html code;
<xsl:text><![CDATA[&]]>nbsp; <xsl:text> — &nbsp; in html code, but no space character;
<xsl:text><![CDATA[ ]]> <xsl:text> — &nbsp; in html code, but no space character;
Finaly, I decided this by inserting <![CDATA[ ]]> into XSLT, and then seting attribute “disable-output-escaping” in XSLT to “yes”. But I suppose this solution is not the best one.
Сorrect code: <xsl:text disable-output-escaping=”yes”><![CDATA[ ]]></xsl:text>
Tags: XSLT
This entry was posted on Tuesday, June 16th, 2009 at 1:49 pm and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


You can use the character code:
I hope this helps… and saves you some typing!