How can I insert
Into an XSLT stylesheet, I keep getting this error:
XML Parsing Error: undefined entity
Essentially I want a non breaking space character in the XSLT Template.
How can I insert
Into an XSLT stylesheet, I keep getting this error:
XML Parsing Error: undefined entity
Essentially I want a non breaking space character in the XSLT Template.
Try using the entity  
instead.
More details on why
doesn't work and other options here.
Use this
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
edit: Downvoters should probably validate that this works first (it does, and is the most general solution to the problem.)
You might want to add the definition for this entity in the beginning of the file (below xml declaration):
<!DOCTYPE stylesheet [
<!ENTITY nbsp " " >
]>
Also you can add more entities such as Ntilde, Aacute, etc.