Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Root element specified by DTD ?

From: "Andy Dingley <dingbat@----------.--->" <dingbat@----------.--->
To: NULL
Date: 6/2/2006 6:07:00 AM


Lachlan Hunt wrote:
> Andy Dingley <dingbat@c...> wrote:

> > Is this fragment a valid HTML document ?...
> > <!DOCTYPE div PUBLIC "-//W3C//DTD HTML 4.01//EN"
> > "http://www.w3.org/TR/html4/strict.dtd">
> > <div>
> >     <p>Foo</p>
> > </div>
>
> Yes, it's valid.  The validator would have told you that.

I don't know _what_ the validator is telling me.  As an example (from
Tidy) it gives a warning
"inserting missing 'title' element"

Now to my mind, this suggests that it's seen as a valid serialisation
of a HTML document, but that after parsing it the HTML-specific tool
has implied the <html>, <head>, <title> and presumably <body> elements.
 Now that's quite a different behaviour to "These documents are valid
as fragments based on any root element".

I also don't have a generic SGML parser to hand, just HTML ones. My
real interest here is in the XML or SGML cases, not anything
HTML-specific that is being implied by the context or HTTP headers.



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