
<!-- $Id: dtddoc.xml,v 1.2 2000/09/25 15:19:31 larsga Exp $ -->
	
<!DOCTYPE dtddoc SYSTEM "dtddoc.dtd">
<dtddoc>
  <dtd-info>
    <name>DTD Documentation DTD</name>
    <shortname>dtddoc</shortname>
    <version>0.2</version>
    <pubid>-//LM Garshol//DTD Documentation DTD 0.2//EN</pubid>

    <creator>
      <name>Lars Marius Garshol</name>
      <email>larsga@garshol.priv.no</email>
      <homep>http://www.garshol.priv.no/</homep>
    </creator>

    <descr>
    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.
    </descr>
  </dtd-info>

  <root-elements>
    <name>dtddoc</name>
  </root-elements>

  <element>
    <name>dtddoc</name>
    <descr><one-line>The root element.</one-line> The dtddoc element is
    just the root element of the DTD and has no special significance.
    </descr>
  </element>

  <element>
    <name>dtd-info</name>
    <descr><one-line>A container for DTD metadata.</one-line> This element
    contains other elements with information about the DTD, such as name,
    version and public identifier.</descr>
  </element>

  <element>
    <name>name</name>
    <descr><one-line>The name of some entity related to the DTD.</one-line>
    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.</descr>
  </element>

  <element>
    <name>shortname</name>
    <descr><one-line>A short name, abbreviation or acronym by which the
    DTD is known.</one-line> 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.</descr>
  </element>

  <element>
    <name>version</name>
    <descr><one-line>The version identifier for the DTD.</one-line>
    This is whatever identifier the DTD used for the documented version.
    There are no particular requirements on this identifier.</descr>
  </element>

  <element>
    <name>pubid</name>
    <descr><one-line>The public identifier for the DTD.</one-line>
    This is the preferred public identifier for the DTD, which may or may not
    be a formal public identifier.</descr>
  </element>

  <element>
    <name>creator</name>
    <descr><one-line>A container element for information about the DTD
    creator.</one-line> This element has no special significance apart from
    that it groups information about a DTD creator.</descr>
  </element>

  <element>
    <name>email</name>
    <descr><one-line>An email address.</one-line> This element should
    contain an email address.</descr>
  </element>

  <element>
    <name>homep</name>
    <descr><one-line>The URL of a home page.</one-line> This element should
    contain the URL of a home page.</descr>
  </element>

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

  <element>
    <name>one-line</name>
    <descr><one-line>A short description.</one-line> This element is
    used inside the <elemref>descr</elemref> element to distinguish
    the first part of the description.</descr>
  </element>

  <element>
    <name>elemref</name>
    <descr><one-line>A reference to an element.</one-line> This element is
    used inside the <elemref>descr</elemref> element to refer to other
    elements. It must contain the name of another element and nothing
    else.</descr>
  </element>

  <element>
    <name>root-elements</name>
    <descr><one-line>A list of root elements.</one-line> This element is
    used to list the allowed root elements of the DTD.</descr>
  </element>

  <element>
    <name>element</name>
    <descr><one-line>Documentation of an element.</one-line> This element
    contains the documentation of an element.</descr>
  </element>

  <element>
    <name>attribute</name>
    <descr><one-line>Documentation of an attribute.</one-line> This element
    contains the documentation of an attribute. It appears inside the
    <elemref>element</elemref> element to document the attribute in the
    context of a specific element.</descr>
  </element>
  
  <element>
    <name>attribute-group</name>
    <descr><one-line>Documentation of a common group of
    attributes.</one-line> This element defines a group of documented
    attributes which can be referred to as a unit from elements which
    support this attribute group. Use <elemref>attribute-group-ref</elemref>
    to refer to attribute-group elements.</descr>
  </element>

  <element>
    <name>attribute-group-ref</name>
    <descr><one-line>A reference to an attribute-group.</one-line>
    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 <elemref>attribute-group</elemref> element.</descr>
  </element>                 
</dtddoc>
