Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / xsd / union.xsd
CommitLineData
970ed795
EL
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3abe9331 3 Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
4
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
9 -->
10<schema xmlns="http://www.w3.org/2001/XMLSchema"
11xmlns:xsd="http://www.w3.org/2001/XMLSchema"
12targetNamespace="www.example.org/union">
13
14<annotation><documentation xml:lang="EN">named union</documentation></annotation>
15<xsd:simpleType name="e21named">
16 <xsd:union memberTypes="xsd:integer xsd:boolean"/>
17</xsd:simpleType>
18
19
20<annotation><documentation xml:lang="EN">unnamed union</documentation></annotation>
21<xsd:simpleType name="e21unnamed">
22 <xsd:union>
23 <xsd:simpleType>
24 <xsd:restriction base="string"/>
25 </xsd:simpleType>
26 <xsd:simpleType>
27 <xsd:restriction base="float"/>
28 </xsd:simpleType>
29 </xsd:union>
30</xsd:simpleType>
31
32<!-- The XSD Part-2 example -->
33
34 <xsd:element name='size'>
35 <xsd:simpleType>
36 <xsd:union>
37 <xsd:simpleType>
38 <xsd:restriction base='integer'/>
39 </xsd:simpleType>
40 <xsd:simpleType>
41 <xsd:restriction base='string'/>
42 </xsd:simpleType>
43 </xsd:union>
44 </xsd:simpleType>
45 </xsd:element>
46
47</schema>
This page took 0.080932 seconds and 5 git commands to generate.