<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://www.example.com/xmlns/myml"
           xmlns="http://www.example.com/xmlns/myml">

  <xs:annotation>
    <xs:documentation>
      This is XML Schema template for MLML module    
      $Id: myml-module-1.xsd,v 1.2 2003/09/23 21:13:11 speruvem Exp $
    </xs:documentation>
    <xs:documentation source="http://www.w3.org/MarkUp/SCHEMA/xhtml-copyright-1.xsd"/>
  </xs:annotation>

  <xs:annotation>
    <xs:documentation>
      My Elements Module
        + myelement
        + myotherelement
    
       This module has no purpose other than to provide structure for some
       PCDATA content.        
    </xs:documentation>
  </xs:annotation>
  
  <xs:attributeGroup name="myotherelement.attlist"/>
  
  <xs:group name="myotherelement.content">
    <xs:sequence/>
  </xs:group>
  
  <xs:complexType name="myotherelement.type">
    <xs:group ref="myotherelement.content"/>
    <xs:attributeGroup ref="myotherelement.attlist"/>
  </xs:complexType>
     
  <xs:element name="myotherelement" type="myotherelement.type"/>
  
  <xs:group name="myelement.content">
    <xs:choice>
       <xs:element ref="myotherelement"/>
    </xs:choice>
  </xs:group>    
  
  <xs:attributeGroup name="myelement.attlist">
       <xs:attribute name="myattribute" type="xs:string"/>
  </xs:attributeGroup>
    
  <xs:complexType name="myelement.type" mixed="true">
     <xs:choice>
        <xs:group ref="myelement.content" minOccurs="0" maxOccurs="1"/>
     </xs:choice>
     <xs:attributeGroup ref="myelement.attlist"/>             
  </xs:complexType>    
  
  <xs:element name="myelement" type="myelement.type"/>
  
  <!-- Note: Global attribute -->
  <xs:attribute name="myattr" type="xs:string"/>  

</xs:schema>
