> james anderson too wrote:
...[snip]
> > according to
> > [31] extSubset ::= ( markupdecl | conditionalSect | PEReference
> > | S )
> >
> > there is no requirement that the external subset begin with a document
> > type declaration.
>
> It is a requirement that the external subset *not* begin with a document
> type declaration.
>
If it were permitted, it would mean that there is a doctype declaration
within a doctype declaration, which is clearly nonsense. It is a common
misunderstanding that DTD means "document type declaration" instead of
"document type definition".
> > which would mean that the only indication of the root element type comes
> > from the refering declaration. which would mean that distinct xml
> > documents could well specify different root elements with respect to the
> > same external subset.
> >
> > is this intentional?
>
> Yes.
>
Not only that, it is an underexploited feature in SGML that this is the
case. The only indication of real use of this feature in SGML comes from
Eliot Kimber, but I believe that it would be even more valuable in XML.
Per-ke
-- Per-ke Ling (note: Per-Åke, transliteration Per-Ake) email: Per-Ake.Ling@uab.ericsson.se phone: +46 8 727 5674 Ericsson Utvecklings AB mobile: +46 70 790 2446 AXE Research and Development fax: +46 8 727 3463xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@ic.ac.uk the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)