如何编写外部参数化DTD?

问题描述

我的代码不起作用,有人可以帮忙吗?

temp.dtd

<!DOCTYPE html
        [<!ENTITY nbsp   "&#160;"> <!-- no-break space = non-breaking space,U+00A0 ISOnum -->
        
        <!ENTITY eacute "&#233;"> <!-- latin small letter e with acute,U+00E9 ISOlat1 -->
        <!ENTITY ecirc  "&#234;"> <!-- latin small letter e with circumflex,U+00EA ISOlat1 -->
        <!ENTITY euml   "&#235;"> <!-- latin small letter e with diaeresis,U+00EB ISOlat1 -->
      ]>
<html xmlns="http://www.w3.org/1999/xhtml"/>

Myhtml.html

<!DOCTYPE html SYstem "temp.dtd">
<html>
<head>
    <Meta charset="UTF-8"/>
    <title>XYZ</title>
    <link href="css/report-fonts.css" rel="stylesheet" type="text/css"/>
    <link href="css/report-base.css" rel="stylesheet" type="text/css"/>
    <link href="css/report-summary.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<h1>&eacute;</h1>
</body>
</html>

我希望 é 被替换为特殊字符,但 html 代码不读取 dtd 文件

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...