我有两个目录的html格式的比较报告(与xml文件)
我需要从这份报告中额外获得所需的数据。我编写了一个简单的xslt,并尝试这样做:
java -jar saxon9he.jar -xsl:diff.xsl -s:Diff\ Report.html
它的结尾是
SXXP0003: Error reported by XML parser: The declaration for the entity "HTML.Version" must
end with '>'.
Transformation failed: Run-time errors
我试图弄清楚我是否在xml文档中正确地声明了我的DTD元素。从我所能知道的一切来看,xsltproc或xmllint都没有检测到以下文档中的有效性错误:
<!DOCTYPE basic-dtd [
<!ENTITY title "The Book of Love">
<!ENTITY author "Jeffrey Halcomb">
<!ELEMENT basic-dtd (title,author,subject,checked-out)>