<xs:schema targetNamespace="http://www.bea.com/help/toc.xsd"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:toc="http://www.bea.com/help/toc.xsd"
           elementFormDefault="qualified">
  <xs:element name="toc-root">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="toc:toc-anchor" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element ref="toc:toc-reference" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element ref="toc:toc-node" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="component" type="xs:string"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="toc-node">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="toc:toc-node" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="label" type="xs:string" use="required"/>
      <xs:attribute name="url" type="xs:string" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="toc-anchor">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="toc:toc-node" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="name" type="xs:string" use="required"/>
      <xs:attribute name="label" type="xs:string" use="required"/>
      <xs:attribute name="url" type="xs:string" use="required"/>
      <xs:attribute name="replace" type="xs:boolean"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="toc-reference">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="toc:toc-node" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute name="anchor" type="xs:string" use="required"/>
      <xs:attribute name="label" type="xs:string"/>
      <xs:attribute name="url" type="xs:string"/>
    </xs:complexType>
  </xs:element>
</xs:schema>
