- From: Gerald Oskoboiny <gerald@w3.org>
- Date: Fri, 19 Dec 1997 19:53:00 -0500 (EST)
- To: www-html-editor@w3.org
I started to get complaints about the validation service not
being able to recognize HTML 4.0 strict, so I hacked my copy
of the strict DTD to include the %HTML.Version attribute.
I don't like modifying published DTDs without my changes being
authorized by an official source (errata.html). In this case
the change is pretty innocent, but I would still rather not
do it without the error being acknowledged first. :/
Here's a diff -c of my changes:
*** /nfs/system/common/lib/sgml/REC-html40-971217/strict.dtd Fri Dec 19 19:31:38 1997
--- /afs/w3.org/pub/WWW/TR/REC-html40/strict.dtd Thu Dec 18 06:22:22 1997
***************
*** 21,28 ****
http://www.w3.org/TR/REC-html40
-->
! <!ENTITY % HTML.Version "-//W3C//DTD HTML 4.0//EN"
! --
Typical usage:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
--- 21,27 ----
http://www.w3.org/TR/REC-html40
-->
! <!--
Typical usage:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
***************
*** 862,873 ****
>
<!--================ Document Structure ==================================-->
- <!ENTITY % version "version CDATA #FIXED '%HTML.Version;'">
-
<!ENTITY % html.content "HEAD, BODY">
<!ELEMENT HTML O O (%html.content;) -- document root element -->
<!ATTLIST HTML
%i18n; -- lang, dir --
- %version;
>
--- 861,869 ----
Gerald
--
Gerald Oskoboiny <gerald@w3.org> +1 617 253 2920
System Administrator, W3C http://www.w3.org/People/Gerald/
World Wide Web Consortium, MIT Labatory for Computer Science
545 Technology Square, Room NE43-353 Cambridge MA 02139 USA
---------- Forwarded message ----------
From: Gerald Oskoboiny <gerald@w3.org>
Date: Thu, 18 Dec 1997 16:50:32 -0500 (EST)
To: www-html-editor@w3.org
Subject: %HTML.Version for strict.dtd
Hi,
I just noticed that %HTML.Version seems to be missing from strict.dtd.
Is this on purpose?
www20: /afs/w3.org/pub/WWW/TR/REC-html40> egrep -i html.version *dtd
frameset.dtd:<!ENTITY % HTML.Version "-//W3C//DTD HTML 4.0 Frameset//EN"
loose.dtd:<!ENTITY % HTML.Version "-//W3C//DTD HTML 4.0 Transitional//EN"
loose.dtd:<!ENTITY % version "version CDATA #FIXED '%HTML.Version;'">
www20: /afs/w3.org/pub/WWW/TR/REC-html40>
I use this "version" attribute in the validation service to see
which DTD the SGML parser used on the document; since it seems
to be missing from the strict DTD, the validation service currently
says "unknown" for validation results with 4.0 strict. :-(
I haven't researched this very carefully yet, but the above grep
results seem to indicate that it isn't defined for strict.dtd?
Gerald
--
Gerald Oskoboiny <gerald@w3.org> +1 617 253 2920
System Administrator, W3C http://www.w3.org/People/Gerald/
World Wide Web Consortium, MIT Labatory for Computer Science
545 Technology Square, Room NE43-353 Cambridge MA 02139 USA
Received on Friday, 19 December 1997 19:53:18 UTC