Re: XHTML character entity support

> 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

http://www.oasis-open.org/committees/entity/spec-2001-08-06.html#s.doctype

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

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

or 

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

 the equivalent of the TR9401  catalog line

DOCTYPE HTML HTML4.dtd

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

<!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.

David


________________________________________________________________________
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