Doctype Classes
|
|
Doctype (Generic Document Type)
|
|
^
SGMLNORM
/ \
SGML XML
|
SGML: |
A full validating SGML parser.
It works in 2 (two) passes. In the first pass the document is parsed,
validated and normalized into a cannonical form and placed into a
a persistant cache. In the second pass the cannonical document is
parsed and processed by the SGMLNORM handler.
The MIME type (for CGI applications) is: text/sgml | |
|---|---|---|
XML: |
"Beta Release (subject to change)" The Extensible Markup Language (XML) is a language derived from SGML. XML has been designed to retain most of the power of SGML but with a substantially more simple grammar that is suited to tools such as yacc and lex. The motivation for XML is to provide:
The most significant features of XML are:
The emerging XML specification is currently being tracked. The XML doctype supports the draft specification as well as a number of enhancements. It does not provide any significant language validation and since it is a child of SGMLNORM it also supports several SGML constructs that are not, and won't be, part of the standard. Note: For the Autodetect mechanism to work correctly one must either use the .xml (or .XML) file name extension or specify <?XML VERSION="Version"?> (only the <?XML is significant) in the document declaration. Since the XML document will be correctly parsed by the SGMLNORM doctype the major effect of incorrect identification would be in the MIME type for the Raw record. | |
Handles SGML-type documents with "normalized"
tags and entities, viz. end-tags and entity replacement.
The MIME type (for CGI applications) is: text/sgml References:
| ||
| Handles documents with SGML-like markup. It is NOT
intended for SGML documents.
In v2.0+ of the doctype suite the SGMLTAG doctype is tuned to the needs of GILS documents. The headline is constructed from the 2nd level tag. The MIME type (for CGI applications) is
Example: <Rec> <Title> Personnel Action System </Title> <Originator>U.S. Geological Survey </Originator>
For the above example: Application/X-SGMLTAG-Rec. | ||
|
GILS: |
Handles documents with SGML-type markup for use in
GILS systems. It is NOT intended for SGML documents. It uses
SGMLTAG.
The MIME type (for CGI applications) is
|