W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2004

Re: Erroneous DTD on www.w3.org

From: John D. Ramsdell <ramsdell@mitre.org>
Date: 24 May 2004 09:52:49 -0400
To: www-html-editor@w3.org
Cc: bede@mitre.org, ramsdell@mitre.org
Message-ID: <ogt3c5qc4pa.fsf@localhost.localdomain>

I reported a problem with a DTD that is part of XHTML Basic, but after
navigating the W3 XHTML page this morning, realized there is a simple
work around.  Switch to XHTML 1.1 and dump XHTML Basic!  As it turns
out, the DTD changes required are trivial, as someone must have
thought about this issue.  Besides, the browsers I use now support
XHTML 1.1.

I've tested this solution with a simple slide package that mandates
XHTML 1.1 slide content. See <http://simp.mitre.org/simple-slides/>.
I'll update the DTD's used to generate SIMP documentation--the real
motivation for my interest in this issue.

John

sh-2.05b$ diff -u ../osimple-slides/simple-slides10.dtd simple-slides10.dtd 
--- ../osimple-slides/simple-slides10.dtd	2004-05-21 09:41:12.000000000 -0400
+++ simple-slides10.dtd	2004-05-24 08:27:29.000000000 -0400
@@ -21,6 +21,10 @@
 
        initial version
 
+     * 2004-May-24
+
+       Switched from XHTML Basic to XHTML 1.1
+
 -->
 
 <!-- The simple slide namespace prefix -->
@@ -39,18 +43,18 @@
 
 <!-- The following comment comes from the XHTML Basic DTD. -->
 
-<!-- This is the driver file for version 1.0 of the XHTML Basic DTD.
+<!-- This is the driver file for version 1.1 of the XHTML DTD.
 
      This DTD is identified by the PUBLIC and SYSTEM identifiers:
 
-     PUBLIC: "-//W3C//DTD XHTML Basic 1.0//EN"
-     SYSTEM: "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"
+     PUBLIC: "-//W3C//DTD XHTML 1.1//EN"
+     SYSTEM: "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
 -->
 
-<!ENTITY % xhtml-basic.dtd
-          PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
-                 "xhtml-basic/xhtml-basic10.dtd">
-%xhtml-basic.dtd;
+<!ENTITY % xhtml11.dtd
+          PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+                 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+%xhtml11.dtd;
 
 <!-- element content -->
 
sh-2.05b$ 


ramsdell@mitre.org (John D. Ramsdell) writes:

> The DTD in
> 
> http://www.w3.org/TR/xhtml-basic/xhtml-arch-1.mod
> 
> is incompatible with W3's XML namespace standard.  The DTD contains a
> processing instruction with a colon in it (IS10744:arch), but 
> 
> http://www.w3.org/TR/REC-xml-names/#Conformance
> 
> states that no PI targets contain any colons.  (Second bullet.)
> 
> This flaw in the DTD is especially troubling now as Java 2 Standard
> Edition 1.5 is bundled with Apache's Xerces parser, a parser that
> conforms to the namespace standard and rejects documents that contain
> processing instructions that include a colon character.
> 
> Please see to it that the offending DTD be amended.
> 
> John
> 	
> From: bugzilla@apache.org
> Subject: DO NOT REPLY [Bug 29092]  - 
>     Xalan unable to handle a colon in a processing instruction in a DTD
> To: ramsdell@mitre.org
> Cc: 
> Date: 21 May 2004 12:40:51 -0000
> 
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://issues.apache.org/bugzilla/show_bug.cgi?id=29092>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
> INSERTED IN THE BUG DATABASE.
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=29092
> 
> Xalan unable to handle a colon in a processing instruction in a DTD
> 
> 
> 
> 
> 
> ------- Additional Comments From zongaro@ca.ibm.com  2004-05-21 12:40 -------
> That particular DTD is defined by the XHTML Modularization Recommendation.  
> Each W3C publication will have a specific e-mail address to which errors should 
> be reported.  In this case, the address is mailto:www-html-editor@w3.org.
> 
> In fact, this problem has been reported before.  See the e-mail thread that 
> begins at [2].  I think reporting it a second time would do no harm.
> 
> [1] http://www.w3.org/TR/xhtml-modularization/
> [2] http://lists.w3.org/Archives/Public/www-html-editor/2001OctDec/1240.html
> 
> ----------
Received on Monday, 24 May 2004 10:24:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:33 UTC