You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ia...@apache.org on 2003/12/10 12:46:04 UTC

cvs commit: ws-jaxme/src/test/jaxb group.xsd

ias         2003/12/10 03:46:04

  Added:       src/test/jaxb group.xsd
  Log:
  Initial check-in for testing nested groups.
  
  Revision  Changes    Path
  1.1                  ws-jaxme/src/test/jaxb/group.xsd
  
  Index: group.xsd
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <xs:schema
  	xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xml:lang="EN"
      targetNamespace="http://ws.apache.org/jaxme/test/misc/group"
  	xmlns="http://ws.apache.org/jaxme/test/misc/group"
      elementFormDefault="qualified"
      attributeFormDefault="unqualified">
    <xs:annotation>
      <xs:documentation>
        This schema is soley designed to test default values in elements.
      </xs:documentation> 
    </xs:annotation>
    
    <xs:group name="NameGroup">
      <xs:sequence>
        <xs:element name="FirstName" minOccurs="0" type="xs:string"/>
        <xs:element name="LastName" minOccurs="0" type="xs:string"/>
      </xs:sequence>
    </xs:group>
  
    <xs:element name="Persons">
      <xs:complexType>
  	  <xs:sequence>
  	    <xs:element name="Person" minOccurs="0" maxOccurs="unbounded">
            <xs:complexType>
  	        <xs:sequence>
  	          <xs:group ref="NameGroup"/>
     		      <xs:element name="Age" minOccurs="0" type="xs:int"/>
  	        </xs:sequence>
  	        <xs:attribute name="Alias" type="xs:string"/>
  	      </xs:complexType>
  	    </xs:element>
  	  </xs:sequence>
  	</xs:complexType>
    </xs:element>
  </xs:schema>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org