Last sync 2016.04.01
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / xsd / all.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2000-2016 Ericsson Telecom AB
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
8
9 Contributors:
10 Balasko, Jeno
11 Raduly, Csaba
12 Szabo, Bence Janos
13 -->
14 <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
15 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
16 xmlns:this="www.example.org/all"
17 targetNamespace="www.example.org/all">
18
19 <xsd:attribute name="attrGlobal" type="token"/>
20
21 <xsd:attributeGroup name="attrGroup">
22 <xsd:attribute name="attrInGroup2" type="token"/>
23 <xsd:attribute name="attrInGroup1" type="token"/>
24 </xsd:attributeGroup>
25
26
27 <xsd:annotation><xsd:documentation xml:lang="EN">All, mandatory</xsd:documentation></xsd:annotation>
28
29 <xsd:complexType name="e29a">
30 <xsd:all>
31 <xsd:element name="foo" type="integer"/>
32 <xsd:element name="bar" type="float"/>
33 <xsd:element name="ding" type="string"/>
34 </xsd:all>
35 </xsd:complexType>
36
37 <xsd:complexType name="e29aAndAttributes">
38 <xsd:all>
39 <xsd:element name="foo" type="integer"/>
40 <xsd:element name="bar" type="float"/>
41 <xsd:element name="ding" type="string"/>
42 </xsd:all>
43 <xsd:attribute name="attrLocal" type="integer"/>
44 <xsd:attribute ref="this:attrGlobal"/>
45 <xsd:attributeGroup ref="this:attrGroup"/>
46 </xsd:complexType>
47
48 <xsd:annotation><xsd:documentation xml:lang="EN">All, optional</xsd:documentation></xsd:annotation>
49
50 <xsd:complexType name="e29bAndAttributes">
51 <xsd:all minOccurs="0">
52 <xsd:element name="foo" type="integer"/>
53 <xsd:element name="bar" type="float"/>
54 <xsd:element name="ding" type="string"/>
55 </xsd:all>
56 <xsd:attribute name="attrLocal" type="integer"/>
57 <xsd:attribute ref="this:attrGlobal"/>
58 <xsd:attributeGroup ref="this:attrGroup"/>
59 </xsd:complexType>
60
61 <xsd:annotation><xsd:documentation xml:lang="EN">All, some elements are optional</xsd:documentation></xsd:annotation>
62
63 <xsd:complexType name="e29cAndAttributes">
64 <xsd:all>
65 <xsd:element name="foo" type="integer"/>
66 <xsd:element name="bar" type="float" minOccurs="0"/>
67 <xsd:element name="ding" type="string"/>
68 </xsd:all>
69 <xsd:attribute name="attrLocal" type="integer"/>
70 <xsd:attribute ref="this:attrGlobal"/>
71 <xsd:attributeGroup ref="this:attrGroup"/>
72 </xsd:complexType>
73
74 <xsd:element name="e29cAndAttributesReferenceOptional">
75 <xsd:complexType>
76 <xsd:group ref="this:e29a" minOccurs="0"/>
77 <xsd:attribute name="attr" type="string" />
78 </xsd:complexType>
79 </xsd:element>
80
81 </xsd:schema>
This page took 0.033338 seconds and 5 git commands to generate.