view _test/Resources/person.xsd @ 375:441e84031c7b

docs
author cin
date Fri, 10 Jan 2014 16:33:00 +0400
parents eff7f75a4408
children
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
	targetNamespace="http://implab.org/person/"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:tns="http://implab.org/person/"
	xmlns:impl="http://implab.org/schemas/impl-bindings"
	elementFormDefault="qualified"
>
    <xs:complexType name="personInfo" impl:bind-type="Person" >
    	<xs:sequence>
    		<xs:element name="firstName" type="xs:string" />
    		<xs:element name="lastName" type="xs:string" />
    		<xs:element name="address" type="tns:addressType" minOccurs="0" maxOccurs="unbounded"/>
    	</xs:sequence>
    	<xs:attribute name="code" use="optional" type="xs:string"/>
    </xs:complexType>
    
    <xs:element name="personInfo" type="tns:personInfo"/>

    <xs:complexType name="addressType">
    	<xs:sequence>
    		<xs:element name="street" type="xs:string" />
    		<xs:element name="line" type="xs:string" />
    	</xs:sequence>
    </xs:complexType>
</xs:schema>