且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何插入 在 XSLT 中

更新时间:2022-06-14 23:12:36

改用实体代码  .

  是 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.