Re: Weak DTDs

Sean Mc Grath (digitome@iol.ie)
Sat, 18 Oct 1997 09:48:39 +0100


>W. Eliot Kimber wrote:
>> Peter has run head-on into one of the fundamental problems with DTDs as
>> currently defined by SGML (and XML): we want them to describe *classes* of
>> documents when they actually describe *individual* documents (and are
>> incapable of defining classes of documents except in very weak ways).
>
SGML establishes a one-to-one relationship between markup and DTD.
The instance - directly or indirectly - *names* its DTD.

However, a given instance can be gainfully parsed w.r.t.
many DTDs to achieve different effects - weakening contraints is one of
them.

To do this involves specifying at parse time - rather that at authoring time -
what DTD to use for the parse.

<Statement InvititationForTrouble=TRUE">
HyTime allows parsing w.r.t. a meta-DTD via HyTime aware parsers. However,
I think there are many occasions when there is nothing "meta" involved. Just
a desire to parse w.r.t to an alternative schema. Not a meta-schema - just
a different schema.
</Statement>

Sean Mc Grath

sean@digitome.com
Digitome Electronic Publishing
http://www.digitome.com