Thursday, February 7, 2008

How to put a nbsp in xml without getting error

When you put a & nbsp ; in your xml file and then display it via an XSLT, you will get the following error:
"Fatal Error: The entity nbsp is referenced but not declared"

A work-around for this is to substitute "& nbsp ; " with "& #160 ; " in the xml file.
The error will not occur.


Resource

No comments: