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:ns="www.example.org"
12 targetNamespace="www.example.org">
15 <documentation xml:lang="EN">
16 The use attribute can be added to local attribute definitions or references but not to global attribute definitions or attribute groups
22 <annotation><documentation xml:lang="EN">attribute declarations</documentation></annotation>
24 <attribute name="fooGlobal" type="float" />
25 <attribute name="barGlobal" type="string" />
26 <attribute name="dingGlobal" type="integer" />
28 <annotation><documentation xml:lang="EN">attribute group declarations</documentation></annotation>
30 <attributeGroup name="Agroup">
31 <attribute name="fooInAgroup" type="float" use="optional" />
32 <attribute name="barInAgroup" type="float" use="required" />
33 <attribute name="dingInAgroup" type="string" use="prohibited" />
36 <annotation><documentation xml:lang="EN">minOccurs, maxOccurs</documentation></annotation>
38 <complexType name="e15a">
40 <element name="foo" type="integer" minOccurs="0"/>
41 <element name="bar" type="float"/>
45 <complexType name="e15b">
47 <element name="foo" type="integer" minOccurs="0" maxOccurs="unbounded"/>
48 <element name="bar" type="float"/>
52 <complexType name="e15c">
54 <element name="foo" type="integer" minOccurs="5" maxOccurs="10"/>
55 <element name="bar" type="float"/>
60 <annotation><documentation xml:lang="EN">attribute use: complex content</documentation></annotation>
62 <complexType name="e17A">
64 <element name="elem" type="string"/>
66 <attribute ref="ns:fooGlobal" use="required" />
67 <attribute ref="ns:barGlobal" use="optional" />
68 <attribute ref="ns:dingGlobal" use="prohibited" />
69 <attribute name="fooLocal" type="float" use="required" />
70 <attribute name="barLocal" type="string" use="optional" />
71 <attribute name="dingLocal" type="integer" use="prohibited" />
72 <attributeGroup ref="ns:Agroup" />
75 <annotation><documentation xml:lang="EN">attribute use: simple content</documentation></annotation>
77 <complexType name="e17Asimple">
79 <extension base="integer">
80 <attribute ref="ns:fooGlobal" use="required" />
81 <attribute ref="ns:barGlobal" use="optional" />
82 <attribute ref="ns:dingGlobal" use="prohibited" />
83 <attribute name="fooLocal" type="float" use="required" />
84 <attribute name="barLocal" type="string" use="optional" />
85 <attribute name="dingLocal" type="integer" use="prohibited" />
86 <attributeGroup ref="ns:Agroup" />