Sync with 5.4.1
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / xsd / attribute_use.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2000-2015 Ericsson Telecom AB
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"
11 xmlns:ns="www.example.org"
12 targetNamespace="www.example.org">
13
14 <annotation>
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
17 </documentation>
18 </annotation>
19
20
21
22 <annotation><documentation xml:lang="EN">attribute declarations</documentation></annotation>
23
24 <attribute name="fooGlobal" type="float" />
25 <attribute name="barGlobal" type="string" />
26 <attribute name="dingGlobal" type="integer" />
27
28 <annotation><documentation xml:lang="EN">attribute group declarations</documentation></annotation>
29
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" />
34 </attributeGroup>
35
36 <annotation><documentation xml:lang="EN">minOccurs, maxOccurs</documentation></annotation>
37
38 <complexType name="e15a">
39 <sequence>
40 <element name="foo" type="integer" minOccurs="0"/>
41 <element name="bar" type="float"/>
42 </sequence>
43 </complexType>
44
45 <complexType name="e15b">
46 <sequence>
47 <element name="foo" type="integer" minOccurs="0" maxOccurs="unbounded"/>
48 <element name="bar" type="float"/>
49 </sequence>
50 </complexType>
51
52 <complexType name="e15c">
53 <sequence>
54 <element name="foo" type="integer" minOccurs="5" maxOccurs="10"/>
55 <element name="bar" type="float"/>
56 </sequence>
57 </complexType>
58
59
60 <annotation><documentation xml:lang="EN">attribute use: complex content</documentation></annotation>
61
62 <complexType name="e17A">
63 <sequence>
64 <element name="elem" type="string"/>
65 </sequence>
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" />
73 </complexType>
74
75 <annotation><documentation xml:lang="EN">attribute use: simple content</documentation></annotation>
76
77 <complexType name="e17Asimple">
78 <simpleContent>
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" />
87 </extension>
88 </simpleContent>
89 </complexType>
90
91 </schema>
This page took 0.033393 seconds and 5 git commands to generate.