Re: Incorrect "catch" of valid data

Terje Bless wrote:-

> > BTW, I seem to recall that the conclusion to that thread was that these
> > characters are actually invalid in HTML 4, but _valid_ in XHTML (since XML
> > 1.0 SE removed the word "graphic" from "any valid graphic character"). Did
> > I read that wrong or are we actually failing in _both_ HTML and XHTML?

At 2001-07-19T07:31-0700, Peter K. Sheerin wrote:-

> I don't think they're valid in XHTML either, even if they are in XML: This
> is from xhtml1.dcl:
>
> <!SGML -- SGML Declaration for valid XML documents --
>      "ISO 8879:1986 (WWW)"
[...]

This is in the zip file linked from Appendix A, which is normative, but is
not linked to anywhere in the Recommendation itself, which seems a little
odd. It appears to have been lifted from  "Comparison of SGML and XML"
<http://www.w3.org/TR/NOTE-sgml-xml-971215>, which is referenced
non-normatively by the XML specification, which (AFAICT) has never agreed
with it in this particular respect (i.e. the Char production). Given the
title "SGML Declaration for valid XML documents", I think it would be
wrong to draw the conclusion that XHTML imposes additional restrictions
here beyond those of XML. In any case, such restrictions would not
strictly be relevant to the [XML] validity of a document.

Nevertheless, I think that a warning of a probable mistake would be very
useful.


Tim Bagot

Received on Thursday, 19 July 2001 14:38:10 UTC