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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the entity code
 instead. is a HTML “character entity reference”. There is no named entity for non-breaking space in XML, so you use the code .Wikipedia includes a list of XML and HTML entities, and you can see that there are only 5 “predefined entities” in XML, but HTML has over 200. I’ll also point over to Creating a space ( ) in XSL which has excellent answers.