| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you 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"> |
| <xs:element name="items" type="ItemsType"/> |
| <xs:complexType name="ItemsType"> |
| <xs:choice minOccurs="0" maxOccurs="unbounded"> |
| <xs:element name="shirt" type="ProductType"/> |
| <xs:element name="hat" type="ProductType"/> |
| <xs:element name="umbrella" type="ProductType"/> |
| </xs:choice> |
| </xs:complexType> |
| <!-- Element only content --> |
| <xs:complexType name="ProductType"> |
| <xs:sequence> |
| <xs:element name="number" type="xs:integer"/> |
| <xs:element name="name" type="xs:string"/> |
| <xs:choice minOccurs="0" maxOccurs="unbounded"> |
| <xs:element name="size" type="SizeType"/> |
| <xs:element name="color" type="ColorType"/> |
| <xs:element name="description" type="DescriptionType"/> |
| </xs:choice> |
| </xs:sequence> |
| <xs:attribute name="effDate" type="xs:date" |
| default="1900-01-01"/> |
| <xs:anyAttribute namespace="##other" processContents="lax"/> |
| </xs:complexType> |
| <!-- Simple content --> |
| <xs:complexType name="SizeType"> |
| <xs:simpleContent> |
| <xs:extension base="xs:integer"> |
| <xs:attribute name="system" type="xs:token"/> |
| </xs:extension> |
| </xs:simpleContent> |
| </xs:complexType> |
| <!-- Empty content --> |
| <xs:complexType name="ColorType"> |
| <xs:attribute name="value" type="xs:string"/> |
| </xs:complexType> |
| <!-- Mixed content --> |
| <xs:complexType name="DescriptionType" mixed="true"> |
| <xs:sequence> |
| <xs:any namespace="http://www.w3.org/1999/xhtml" |
| minOccurs="0" maxOccurs="unbounded" |
| processContents="skip"/> |
| </xs:sequence> |
| </xs:complexType> |
| </xs:schema> |