I'm having Xerces-2.9.0 parse a file with the XHTML Basic 1.0 doctype...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
<title>XHTML 1.1 Template</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml;
charset=UTF-8" />
<meta http-equiv="Content-Script-Type"
content="application/x-javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
</head>
<body>
<h1 id="headlineOne">Page 01</h1>
<h1 class="RemoveMe">Remove Me</h1>
<h1 class="RemoveMe">Remove Me</h1>
<h1 class="RemoveMe">Remove Me</h1>
<div>
<span id="hello">Hello World</span>
<ol id="table">
<li>Hello</li>
</ol>
<a href="http://foo.com">change to bar.com</a>
</div>
</body>
</html>
But Xerces gives me the following error in parsing...
[xmlc]
D:\myclasses\Repository\Enhydra\tomcatXHTML\res\page\xhtmlbasic.xhtml:26:
Error: A colon is not allowed in the name 'IS10744:arch' when
namespaces are enabled.
[xmlc] Error: Parse of
"D:\myclasses\Repository\Enhydra\tomcatXHTML\res\page\xhtmlbasic.xhtml"
failed: org.xml.sax.SAXParseException: A colon is not allowed in the
name 'IS10744:arch' when namespaces are enabled.
Here's the part of the DTD that it appears to be bombing on (part of
the flat version of the DTD [1], referenced using a catalog)...
<?IS10744:arch xhtml
public-id = "-//W3C//NOTATION AFDR ARCBASE XHTML 1.1//EN"
dtd-public-id = "-//W3C//DTD XHTML 1.1//EN"
dtd-system-id = "xhtml11.dtd"
doc-elem-form = "html"
form-att = "html"
renamer-att = "htnames"
suppressor-att = "htsupp"
data-ignore-att = "htign"
auto = "ArcAuto"
options = "HtModReq HtModOpt"
HtModReq = "Framework Text Hypertext Lists Structure"
HtModOpt = "Standard"
?>
The w3c wrote this, not me. Is Xerces correct in telling me that the
W3C made a mistake in the DTD or is Xerces getting something
wrong? Or do I need to change my parser settings for this to
work? All the XHTML 1.0 DTDs work fine. The XHTML 1.1 DTD works
fine. Why does it fail with this one? I have a couple other
problems with other DTDs such as the xhtml+voice12.dtd [2] and it
seems to be namespace related as well, though the DTD is parsed just
fine. It's the namespaces in the document that it has a problem
with, but I won't go into that one before hearing some opinions on
this XHTML Basic 1.0 DTD problem first.
thanks,
Jake
[1]
http://validator.w3.org/sgml-lib/REC-xhtml-basic-20001219/xhtml-basic10-f.dtd
[2] http://www.voicexml.org/specs/multimodal/x+v/12/dtd/xhtml+voice12.dtd
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]