What is the syntax for &nbsp in XSLT?

I am working on xslt form and I need to create a space like a new line or a retune on my page but it doesn't like the normal html syntax of &nbsp and I was just wondering how would you do this in xslt?
Thanks in advance for all the help.
Who is Participating?
Geert BormansInformation ArchitectCommented:
Hi sabrina_spillane,

by putting the   in the document,
you are using an undefined entity

there are two options to solve this issue

1. make a definition for the entity, by adding a DOCTYPE and the ENTITY definition, like this

<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/XSL/Transform"; version="1.0">

2. just use &#160; directly, instead of &nbsp;
if you use &#160; in an XML file, you enter the 160th character of unicode, which is the non breaking space

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.