1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2000-2015 Ericsson Telecom AB
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
10 <schema xmlns="http://www.w3.org/2001/XMLSchema"
11 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
12 targetNamespace="www.example.org/union">
14 <annotation><documentation xml:lang="EN">named union</documentation></annotation>
15 <xsd:simpleType name="e21named">
16 <xsd:union memberTypes="xsd:integer xsd:boolean"/>
20 <annotation><documentation xml:lang="EN">unnamed union</documentation></annotation>
21 <xsd:simpleType name="e21unnamed">
24 <xsd:restriction base="string"/>
27 <xsd:restriction base="float"/>
32 <!-- The XSD Part-2 example -->
34 <xsd:element name='size'>
38 <xsd:restriction base='integer'/>
41 <xsd:restriction base='string'/>