#6 [xhtml]

Example - Documenting a Complex Type

<xs:complexType name="Prolog">

    <xs:annotation>
      <xs:documentation>
      <h:p>This type represents a prolog element in a narrative document.</h:p>
      </xs:documentation>
    </xs:annotation>

    <xs:sequence>

      <xs:element name="pubdate" type="xs:date">
      <xs:annotation><xs:documentation>
      <h:p>The publication date of the containing document.</h:p>
      </xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="0" name="conference" type="md:Conference">
      <xs:annotation><xs:documentation>
      <h:p>An optional conference name for which the paper was written.</h:p>
      </xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="0" maxOccurs="unbounded" ref="md:author">
      <xs:annotation><xs:documentation>
      <h:p>The authors of the document.</h:p>
      </xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="0" name="abstract" type="xhtml:BlockBlockContainer">
      <xs:annotation><xs:documentation>
      <h:p>An abstract for the document.</h:p>
      </xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="0" name="acknowledgement" type="xhtml:BlockBlockContainer">
      <xs:annotation><xs:documentation>
      <h:p>Acknowledgments from the author.</h:p>
      </xs:documentation></xs:annotation>
      </xs:element>

      <xs:element maxOccurs="unbounded" minOccurs="0" name="category" type="md:CategoryDescriptor">
      <xs:annotation><xs:documentation>
      <h:p>ACM categories to which this document belongs.</h:p>
      </xs:documentation></xs:annotation>
      </xs:element>

      <xs:element minOccurs="0" name="terms">
        <xs:annotation><xs:documentation>
        <h:p>ACM terms that apply to this document.</h:p>
        </xs:documentation></xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="term" type="md:GeneralTerm"></xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

      <xs:element minOccurs="0" name="keywords">
        <xs:annotation><xs:documentation>
        <h:p>ACM keywords that apply to this document.</h:p>
        </xs:documentation></xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="word" type="xs:string"></xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

      <xs:element minOccurs="0" name="copyright" type="md:Copyright">
        <xs:annotation><xs:documentation>
        <h:p>A copyright statement for this document.</h:p>
        </xs:documentation></xs:annotation>
      </xs:element>

    </xs:sequence>
  </xs:complexType>