W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > November 2009

Re: XHTML character entity support

From: David Carlisle <davidc@nag.co.uk>
Date: Wed, 11 Nov 2009 15:53:10 GMT
Message-Id: <200911111553.nABFrAwD018227@edinburgh.nag.co.uk>
To: hsivonen@iki.fi
Cc: public-html@w3.org, public-xml-core-wg@w3.org

> I thought you meant supporting entities even in the case where no
> external-entity is referenced. 

The original sgml-open/oasis catalog format allows you to default a dtd
given a top level element name. The catalogs shipped with opensp for
example default the html4 dtd on any document that starts with <html>
but no explict doctype.

.... goes away and checks the xml catalog spec

defaulting a dtd based on an element name isn't in the core xml-catalog
support but it is defined by the extension in appendix E


which defines a doctype element to be used in the catalog  as:

<doctype name="html" uri="w3centities.ent"/>


<doctype name="html" uri="html4.dtd"/>

 the equivalent of the TR9401  catalog line


which tells the parser to parse any document starting <html> as if it

<!DOCTYPE HTML SYSTEM "<the path to>HTML4.dtd">

Incidentally given suitable catalog and sgml declaration you can default
a dtd for the html5 doctypoe

<!DOCTYPE html>

as well, so html5 documents can be parsed by sgml tools.


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
Received on Wednesday, 11 November 2009 15:53:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:40:40 UTC