小编Uma*_*ima的帖子

实体“nbsp”被引用,但未声明

我编写了一个 XSLT 将 xml 转换为 xml。

输入 XML:

<test>The Spanish word for "Spain" is "Espa&nbsp;a" Dagon his Name, Sea Monster</test>
Run Code Online (Sandbox Code Playgroud)

输出XML:

<test>The Spanish word for "Spain" is "Espa a" Dagon his Name, Sea Monster</test>
Run Code Online (Sandbox Code Playgroud)

XSL 文件:我已在 doctype at 下添加了实体 nbsp 声明的代码并替换为实体,但仍然是相同的错误实体“nbsp”被引用,但未声明。

<xsl:template match="test">
<test>
  <xsl:apply-templates/>
</test>
Run Code Online (Sandbox Code Playgroud)

html css xml dtd xslt-2.0

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

css ×1

dtd ×1

html ×1

xml ×1

xslt-2.0 ×1