W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > June 2010

RE: HTML5 documents give critical error: Document not HTML

From: David Smith <da__smith@hotmail.com>
Date: Tue, 8 Jun 2010 16:19:30 +0100
Message-ID: <SNT127-W258F40FBC8EED6A1BE7C4AA1D60@phx.gbl>
To: <fd@w3.org>
CC: <public-mobileok-checker@w3.org>

Many thanks again Francois

> If you only mean to include the entities reference so that your XML 
> document is "well-formed" for XML parsers, you still need to add the 
> entities in a DOCTYPE declaration, with a DOCTYPE declaration like:
> <!DOCTYPE html [
>     "-//W3C//ENTITIES Latin 1 for XHTML//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
> %HTMLlat1;
>     "-//W3C//ENTITIES Symbols for XHTML//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
> %HTMLsymbol;
>     "-//W3C//ENTITIES Special for XHTML//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
> %HTMLspecial;
> ]>

I think this is what was rattling round the back of my mind when I asked. I'd seen something like it once before and wondered if it was to do with this.

> But then you've defined a document type and your document does not 
> "validate" anymore against that document type. I don't think there's any 
> way to define an entity outside of a DOCTYPE declaration.
> Note I haven't checked the above declaration, which may be invalid.

It looks right enough to me for sure but I'll do some digging around.

> In short, no easy way I can think of ;)
> Francois.

all the best
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
Received on Tuesday, 8 June 2010 15:20:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:21:21 UTC