5543eb9de8
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1824563 13f79535-47bb-0310-9956-ffa450edef68
55 lines
2.0 KiB
XML
55 lines
2.0 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 targetNamespace="http://xmlbeans.apache.org/samples/validation/todolist" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://xmlbeans.apache.org/samples/validation/todolist" elementFormDefault="qualified">
|
|
<xs:element name="todolist">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="item" type="itemType" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:complexType name="itemType">
|
|
<xs:sequence>
|
|
<xs:element name="name" type="xs:string"/>
|
|
<xs:element name="description" type="xs:string" minOccurs="0"/>
|
|
<xs:element name="due_by" type="xs:dateTime" minOccurs="0"/>
|
|
<xs:element name="action" type="actionType"/>
|
|
</xs:sequence>
|
|
<xs:attribute name="id" type="idType"/>
|
|
</xs:complexType>
|
|
<xs:simpleType name="nameType">
|
|
<xs:restriction base="xs:string">
|
|
<xs:maxLength value="50"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
<xs:simpleType name="idType">
|
|
<xs:restriction base="xs:int">
|
|
<xs:maxExclusive value="100"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
<xs:simpleType name="actionType">
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="do"/>
|
|
<xs:enumeration value="delegate"/>
|
|
<xs:enumeration value="someday_maybe_defer"/>
|
|
<xs:enumeration value="toss"/>
|
|
<xs:enumeration value="incubate"/>
|
|
<xs:enumeration value="file"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:schema>
|