Instrumental | ac1e1ec | 2018-03-26 13:37:04 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | * ============LICENSE_START==================================================== |
| 4 | * org.onap.aaf |
| 5 | * =========================================================================== |
| 6 | * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. |
| 7 | * =========================================================================== |
| 8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | * you may not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
| 11 | * |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | * |
| 14 | * Unless required by applicable law or agreed to in writing, software |
| 15 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | * See the License for the specific language governing permissions and |
| 18 | * limitations under the License. |
| 19 | * ============LICENSE_END==================================================== |
| 20 | * |
| 21 | --> |
| 22 | <xs:schema elementFormDefault="qualified" |
| 23 | targetNamespace="urn:inherit" |
| 24 | xmlns="urn:inherit" |
| 25 | xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 26 | > |
| 27 | |
| 28 | <xs:complexType name="baseType"> |
| 29 | <xs:sequence> |
| 30 | <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1" /> |
| 31 | <xs:element name="num" type="xs:short" minOccurs="0" maxOccurs="1" /> |
| 32 | </xs:sequence> |
| 33 | </xs:complexType> |
| 34 | |
| 35 | <xs:complexType name="derivedA"> |
| 36 | <xs:annotation> |
| 37 | <xs:documentation>Select one of the items</xs:documentation> |
| 38 | </xs:annotation> |
| 39 | <xs:complexContent> |
| 40 | <xs:extension base="baseType"> |
| 41 | <xs:sequence> |
| 42 | <xs:element name="shortName" type="xs:string" minOccurs="0" maxOccurs="1" /> |
| 43 | <xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded" /> |
| 44 | </xs:sequence> |
| 45 | </xs:extension> |
| 46 | </xs:complexContent> |
| 47 | </xs:complexType> |
| 48 | |
| 49 | <xs:element name="root"> |
| 50 | <xs:complexType> |
| 51 | <xs:sequence> |
| 52 | <xs:element name="base" type="baseType" minOccurs="0" maxOccurs="unbounded" /> |
| 53 | </xs:sequence> |
| 54 | </xs:complexType> |
| 55 | </xs:element> |
| 56 | |
| 57 | </xs:schema> |