如何插入 在 XSLT 中 [英] How to insert   in XSLT
问题描述
如何插入
进入 XSLT 样式表,我不断收到此错误:
Into an XSLT stylesheet, I keep getting this error:
XML 解析错误:未定义实体
XML Parsing Error: undefined entity
本质上我想在 XSLT 模板中有一个不间断的空格字符.
Essentially I want a non breaking space character in the XSLT Template.
推荐答案
改用实体代码  
.
是 HTML字符实体引用".XML 中没有用于不间断空格的命名实体,因此您使用代码  
.
is a HTML "character entity reference". There is no named entity for non-breaking space in XML, so you use the code  
.
维基百科包括 XML 和 HTML 实体的列表,你可以看到只有XML 中有 5 个预定义实体",但 HTML 有超过 200 个.我还将指出 在 XSL 中创建一个空间 ( ),其中有很好的答案.
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.
这篇关于如何插入 在 XSLT 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!