5543eb9de8
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1824563 13f79535-47bb-0310-9956-ffa450edef68
53 lines
1.9 KiB
XML
53 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
Copyright 2004 The Apache Software Foundation
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
|
|
targetNamespace="http://xmlbeans.apache.org/samples/xquery/employees"
|
|
xmlns="http://xmlbeans.apache.org/samples/xquery/employees">
|
|
<xs:element name="employees">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="employee" type="employeeType" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:complexType name="employeeType">
|
|
<xs:sequence>
|
|
<xs:element name="name" type="xs:string"/>
|
|
<xs:element name="address" type="addressType" maxOccurs="unbounded"/>
|
|
<xs:element name="phone" type="phoneType" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
<xs:complexType name="addressType">
|
|
<xs:sequence>
|
|
<xs:element name="street" type="xs:string"/>
|
|
<xs:element name="city" type="xs:NCName"/>
|
|
<xs:element name="state" type="xs:NCName"/>
|
|
<xs:element name="zip" type="xs:integer"/>
|
|
</xs:sequence>
|
|
<xs:attribute name="location" type="xs:NCName" use="required"/>
|
|
</xs:complexType>
|
|
<xs:complexType name="phoneType">
|
|
<xs:simpleContent>
|
|
<xs:extension base="xs:string">
|
|
<xs:attribute name="location" type="xs:NCName" use="required"/>
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
</xs:schema>
|