& Special characters in XML, & nbsp; will cause problems. Solution:
1.
Add a piece of code in XML, as shown below:
<! Doctype your_root_name [
<! Entity nbsp "">
<! Entity copy "">
<! Entity Reg "">
<! Entity trade "">
<! Entity mdash "-">
<! Entity ldquo "">
<! Entity rdquo "">
<! Entity pound "£">
<! Entity yen "¥">
<! Entity Euro "€">
]>
If & nbsp; appears in the generated HTML code, use the following:
Use <XSL: Text> </XSL: Text> to retain spaces. Note that the XSL type here is text. If it is other types, it will not work.
In addition, when the disable-output-escaping attribute is yes, escape output can be disabled, that is, direct output <, &, and other characters <XSL: text disable-output-escaping = "yes"> & amp; nbsp; </XSL: Text>
Or <XSL: Text disable-output-escaping = "yes"> <! [CDATA [& nbsp;]> </XSL: Text>
For more information, see W3C documentation.Http://www.w3.org/TR/html401/sgml/entities.html
2. Change "& nbsp;" to "& amp; nbsp.
"& Amp; nbsp;" indicates non-breaking space. It is not a built-in (built-in) object of XML. It is used in HTML, which is also defined in XHTML. It represents a space and instructs the browser not to interrupt (breaking, in fact, cannot wrap) here ).