Documentation for DTD Documentation DTD

Version: 0.2
Creator: Lars Marius Garshol - larsga@garshol.priv.no
PublicId: -//LM Garshol//DTD Documentation DTD 0.2//EN

Description

The DTD Documentation DTD can be used to document XML DTDs in XML. The intention is that the XML documentation should supplement the DTD itself and that the two together should make up the complete documentation.

Root elements

Element index

attribute Documentation of an attribute.
attribute-group Documentation of a common group of attributes.
attribute-group-ref A reference to an attribute-group.
creator A container element for information about the DTD creator.
descr A description.
dtd-info A container for DTD metadata.
dtddoc The root element.
element Documentation of an element.
elemref A reference to an element.
email An email address.
homep The URL of a home page.
name The name of some entity related to the DTD.
one-line A short description.
pubid The public identifier for the DTD.
root-elements A list of root elements.
shortname A short name, abbreviation or acronym by which the DTD is known.
version The version identifier for the DTD.

Element descriptions

attribute

Documentation of an attribute. This element contains the documentation of an attribute. It appears inside the element element to document the attribute in the context of a specific element.

Parents

attribute-group element

Content model

(name , descr)

attribute-group

Documentation of a common group of attributes. This element defines a group of documented attributes which can be referred to as a unit from elements which support this attribute group. Use attribute-group-ref to refer to attribute-group elements.

Parents

dtddoc

Content model

(name , attribute+)

attribute-group-ref

A reference to an attribute-group. This element is used within the documentation of an element to refer to a group of attributes supported by the element and documented with an attribute-group element.

Parents

element

Content model

(#PCDATA)

creator

A container element for information about the DTD creator. This element has no special significance apart from that it groups information about a DTD creator.

Parents

dtd-info

Content model

(name , email? , homep?)

descr

A description. This element should contain a textual description. The one-line child element can be used to distinguish the first part of the description as an abbreviated description.

Parents

attribute dtd-info element

Content model

(#PCDATA | one-line | elemref)*

dtd-info

A container for DTD metadata. This element contains other elements with information about the DTD, such as name, version and public identifier.

Parents

dtddoc

Content model

(name , shortname , version? , pubid? , creator+ , descr)

dtddoc

The root element. The dtddoc element is just the root element of the DTD and has no special significance.

Parents

Must appear as the root element.

Content model

(dtd-info , root-elements? , (element | attribute-group)+ , )

element

Documentation of an element. This element contains the documentation of an element.

Parents

dtddoc

Content model

(name , descr , (attribute | attribute-group-ref)* , )

elemref

A reference to an element. This element is used inside the descr element to refer to other elements. It must contain the name of another element and nothing else.

Parents

descr

Content model

(#PCDATA)

email

An email address. This element should contain an email address.

Parents

creator

Content model

(#PCDATA)

homep

The URL of a home page. This element should contain the URL of a home page.

Parents

creator

Content model

(#PCDATA)

name

The name of some entity related to the DTD. This element contains the full name of some entity which appears in the DTD documentation, such as the DTD itself, the DTD creator, an element type etc.

Parents

attribute attribute-group creator dtd-info element root-elements

Content model

(#PCDATA)

one-line

A short description. This element is used inside the descr element to distinguish the first part of the description.

Parents

descr

Content model

(#PCDATA)

pubid

The public identifier for the DTD. This is the preferred public identifier for the DTD, which may or may not be a formal public identifier.

Parents

dtd-info

Content model

(#PCDATA)

root-elements

A list of root elements. This element is used to list the allowed root elements of the DTD.

Parents

dtddoc

Content model

(name+)

shortname

A short name, abbreviation or acronym by which the DTD is known. This is often the same name as the root element of the DTD, and is intended mainly for convenience. For the Text Encoding Initiative DTD the shortname would be TEI.

Parents

dtd-info

Content model

(#PCDATA)

version

The version identifier for the DTD. This is whatever identifier the DTD used for the documented version. There are no particular requirements on this identifier.

Parents

dtd-info

Content model

(#PCDATA)
Produced by dtddoc.py, using xmlproc.