Doctype Classes
|
|
Doctype (Generic Document Type)
|
|
^
COLONDOC
Colon tagged documents are among the most commonly
used form of ASCII markup.
Field names are defined by, you guessed it, ':'.
COLONDOC is not really (intended to be) a document type but a parent for this "major" class of document formats. The COLONDOC class has been designed to provide a convienient base class for the development of user document types.
Examples of children are: BIBCOLON, IAFADOC and IKNOWDOC.
Colon Records:
TAG1: ... ..... TAG2: ... TAG3: ... ... ....
Examples:
Dogs: This is a dog Cats: This is a cat Library Books: LiteratureThe above fragement contains the fields DOGS and CATS. The Library Books... line belongs to the CATS field since it contains white space before the first ':' in the line, whence is interpreted as a continuation of the previous field.
one: two: three:
The field name is "one" the value is "two: three:"
one: one: two:
three: four
The above contains 2(two) fields, "one" and "three"!
ABSTRACT: This is a description of some work of art. See Also: Elmer Fudd's Bio.The above example contains 2(two) fields. ABSTRACT and ALSO.
ABSTRACT: This is a description of some work of art. See Also: Elmer Fudd's Bio.The above example contains 1(one) field: ABSTRACT.
Although the COLONDOC format is ill-suited to heirarchical data its COLONGRP child is.
The MIME type for Raw Records is Application/X-COLONDOC.