Russian Doll design nest the local element declaration within other schema component : Russian Doll « XML Schema « XML Tutorial






<xsd:schema
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="qualified"
  targetNamespace="http://www.java2s.com/namespaces/pub"
  xmlns="http://www.java2s.com/namespaces/pub">

<xsd:element name="publications">
  <xsd:complexType>
   <xsd:sequence>
    <xsd:element name="book" maxOccurs="unbounded">
     <xsd:complexType>
      <xsd:sequence>
      <xsd:element name="title" type="xsd:string"/>
      <xsd:element name="author" type="xsd:string"/>
      <xsd:element name="description" type="xsd:string"/>
     </xsd:sequence>
     <xsd:attribute name="isbn" type="xsd:string"/>
     </xsd:complexType>
    </xsd:element>
   </xsd:sequence>
  </xsd:complexType>
</xsd:element>
</xsd:schema>








3.97.Russian Doll
3.97.1.Russian Doll and Object-Oriented Design
3.97.2.Russian Doll design nest the local element declaration within other schema component
3.97.3.Russian doll type element
3.97.4.Adapting the structure of your document
3.97.5.A book element of our library