[Unofficial mirror copy from: http://www.textuality.com/mgml/comparison.html, November 5, 1996 ]

Comparison between SGML and MGML

The following, in no particular order, highlights the differences between SGML and MGML

Markup

Markup syntax is concrete, not abstract. No minimization of any kind is allowed except for the omission of attributes with default values.

PI's are allowed, with no effect on the parsing.

No Distinct Metalanguage

Markup Declaration in MGML is done using a Document Structure Definition, which differs from SGML markup declarations in that

  1. it is an MGML (and SGML) document
  2. it specifies only the structure, not the markup syntax

A DSD is somewhat more strict in its layout than a DTD - all Entities and Notations must be declared first, in any old order, then all Elements and Attributes.

The structure of a DSD is defined by the "Reference DSD".

Entities

Entities are either STRING or EXTERNAL. String entities are specified as a sequence of literal strings and numeric character specifications. External entities may be SYSTEM or PUBLIC, as with SGML; the identifiers work the same. All entities are assumed to be parsable unless marked as NDATA; there is no notion of CDATA or SDATA entities. There are no PI entities. There are no bracketed text entities.

There are no parameter entities, since the language and metalanguage are unified.

Capacities

MGML does not use capacities; item lengths and nesting depths may be adjusted to meet the needs of the application.

Elements

Elements are much as in SGML, except that the AND connector in content models is dropped.

There are no exclusions or inclusions.

There is no notion of CDATA or RCDATA content.

Attributes

All of the SGML attribute types are supported except for ENTITY, ENTITIES, CURRENT and CONREF.

Notations

Notation declaration and reference works as in SGML

Dropped, Deliberately

SUBDOC, Marked sections, CONCUR, LINK, SHORTREF, DATATAG.

Still Not Figured Out

RS/RE

Markup Declarations - how to link them to documents without breaking an 8879 parser?