Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Root element specified by DTD ?

From: Joe Kesselman <keshlam-nospam@-------.--->
To: NULL
Date: 6/3/2006 11:21:00 AM

Jukka K. Korpela wrote:
> In future, please quote or paraphrase the message that you are 
> commenting on.

I usually do. Apologies.

> It depends on. There's no law that requires additional rules

Granted. It's rare that there aren't any, in my experience, unless the 
document type is pure structure.


>> Think of
>> these as "higher-level syntax checking"; the application is always
>> going to impose semantic constraints as well.
> 
> What's "higher-level" here?

Higher than the basic XML syntax.

> Anyway, in the issue discussed in this 
> thread, it is the additional _syntactic_ constraints that imply that a 
> certain kind of document is not an HTML document.

That's what I was agreeing with, though apparently I may have phrased it 
badly. The DTD is not always a completely constrained specification of 
"a kind of document". That flexibility may in fact have been deliberate; 
I strongly suspect the intent was that a single DTD could describe 
several documents which share related structures.

> Whether HTML specifications make such a 
> requirement is debatable; the prose in the specs is a mixture of 
> normative-looking prose, comments, hints, wishful thinking, etc.)

http://www.w3.org/TR/1999/REC-html401-19991224/struct/global.html#h-7.1

The complicating factor here is the use of the word "should". The HTML4 
spec predates the W3C's adoption of the normative use of MAY, SHOULD, 
and MUST to mean "optional", "don't violate this without extremely good 
reason", and "required by the spec" respectively. So we need to 
crosscheck that.

XHTML 1.0 does follow that convention, so we can backhandedly check the 
intent by looking at that spec. There, a Strictly Conforming Document 
must (!) have html as its root element, and this is *NOT* flagged as one 
of the differences from HTML4 either in this spec or in the 
compatability guidelines (http://www.w3.org/TR/xhtml1/#guidelines). This 
strongly suggests that the W3C intended that HTML4 docs follow this rule.

I agree, that's a less than ideal way to answer this question, but I can 
tell you that even folks working on the W3C's specs often have to resort 
to that kind of pointer chasing to nail things down.

If you need a fully official answer... I haven't checked; are any of us 
members of the (X)HTML Working Group? If not, I'd suggest dropping a 
quick note to www-html@w... and suggesting that it might be good to 
have an erratum which clarifies whether this "should" was intended to be 
"must" or not. (I checked; there isn't one.)

-- 
() ASCII Ribbon Campaign  | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent