Markup
|
Structure
|
<! … >
|
A markup declaration.
|
<! -- … -- > -- … --
|
A comment. A markup declaration can consist entirely of a comment, or a comment can be nested within another type of markup declaration.
|
<!DOCTYPE doc_name [other_declarations] >
|
This is the Document Type Declaration (document type) which begins the DTD. Anything between the square brackets ([ and ]) is part of the document type named doc_name.
|
<!ELEMENT element_name minimization(content_model)>
|
An Element Declaration. Elements translate into tags and tag pairs in Arbortext Editor. Maximum name length is 8 characters (in reference concrete syntax).
|
<!ATTLIST element_name attribute-name declared_value default>
|
An Attribute Declaration for a particular element or group of elements. Must always be associated with an element declaration.
|
<!ENTITY … >
|
An Entity Declaration. Once it has been declared, an entity can thereafter be referenced by an entity reference. Entity declarations must precede entity references. Entity Declarations are of two types: General entities or Parameter entities. General entities are used for text replacement. Parameter entities are used as substitute model groups.
|
Symbol
|
Indicates
|
+
|
Required and repeatable. An element or model group must occur one or more times.
|
*
|
Optional and repeatable. An element or model group may appear zero or more times.
|
?
|
Optional. The element or model group may appear once or not at all.
|
Otherwise, the element is required and only one occurrence of the element is allowed.
|
Symbol
|
Indicates
|
,
|
ALL elements occur and in specific order in the document instance.
|
&
|
Elements may appear in any order but MUST appear at least once.
|
|
|
One element OR the other may appear but not both.
|
Keyword
|
Definition
|
CDATA
|
Zero or more characters, no markup is recognized other than the delimiters that end the character data.
|
ENTITY
|
A unit of information that may be referred to by a symbol in a DTD or in a document instance.
|
ID
|
SGML construct that must have a name start character and be unique.
|
IDREF
|
A name previously entered as the unique identifier (ID) of another element.
|
MINIMIZATION
|
The context of a textual element implies how it should be marked up. Usually end tags may be omitted in these cases. This is called markup minimization.
|
NAME
|
Definition of a name, must begin with a name start character (alpha).
|
NAMES
|
A list of NAME separated by a space.
|
NMTOKEN
|
A name token may start with a digit (numeric) or an alpha character.
|
NMTOKENS
|
A list of NMTOKEN separated by a space.
|
NOTATION
|
Non-SGML content specified in a NOTATION declaration.
|
NUMBER
|
Consists of all digits.
|
NUMBERS
|
A list of NUMBER separated by a space.
|
NUTOKEN
|
A number token must start with a digit.
|
NUTOKENS
|
A list of NUTOKEN separated by a space.
|
TAG
|
A symbol delimiting a logical element inside a document. Defined by the SGML standard as descriptive markup . There are start tags and end tags.
|
Default Value
|
Definition
|
REQUIRED
|
Attribute value is required (must always be specified).
|
IMPLIED
|
Attribute value is implied (optional, value will be supplied by the application if not specified).
|
CURRENT
|
Attribute value is current (default becomes the most recent specified value).
|
Declared Content
|
Definition
|
CDATA
|
Contains only valid SGML characters that do not need further processing.
|
RCDATA
|
Contains character references and/or entity references which are resolved to character data.
|
EMPTY
|
Content is empty.
|
Content
|
Definition
|
PCDATA
|
Contains text which is parsed so that embedded tags and/or references are resolved.
|
ANY
|
Means the content is mixed content in which PCDATA and any elements defined in the same DTD are allowed.
|