在xsl中怎样处理空格( )这个转意字符啊?

源码:

1<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
2<xsl:template match="/">
3<html>
4<body>
5<p>Good Morning!</p>
6</body>
7</html>
8</xsl:template>
9</xsl:stylesheet>

一旦处理到那个 时就会出现:
“到未定义实体 'nbsp'的引用”的错误
应该怎样定义这个实体引用,而且能在网页中表现出这个空格呢?
---------------------------------------------------------------

]>

1<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
2<xsl:template match="/">
3<html>
4<body>
5<p>Good Morning!</p>
6</body>
7</html>
8</xsl:template>
9</xsl:stylesheet>

---------------------------------------------------------------

1<p>Good<xsl:text disable-output-escaping="yes"> </xsl:text>Morning!</p>

---------------------------------------------------------------

拼音输入法,用全角
---------------------------------------------------------------

不要用ie5,用ie6,并使用正式的xslt 1.0语法。
---------------------------------------------------------------

直接打全角空格,试试.

Published At
Categories with Web编程
Tagged with
comments powered by Disqus