1 <?xml version="1.0" encoding="UTF-8"?>
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
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">
19 <xsd:attribute name="attrGlobal" type="token"/>
21 <xsd:attributeGroup name="attrGroup">
22 <xsd:attribute name="attrInGroup2" type="token"/>
23 <xsd:attribute name="attrInGroup1" type="token"/>
27 <xsd:annotation><xsd:documentation xml:lang="EN">All, mandatory</xsd:documentation></xsd:annotation>
29 <xsd:complexType name="e29a">
31 <xsd:element name="foo" type="integer"/>
32 <xsd:element name="bar" type="float"/>
33 <xsd:element name="ding" type="string"/>
37 <xsd:complexType name="e29aAndAttributes">
39 <xsd:element name="foo" type="integer"/>
40 <xsd:element name="bar" type="float"/>
41 <xsd:element name="ding" type="string"/>
43 <xsd:attribute name="attrLocal" type="integer"/>
44 <xsd:attribute ref="this:attrGlobal"/>
45 <xsd:attributeGroup ref="this:attrGroup"/>
48 <xsd:annotation><xsd:documentation xml:lang="EN">All, optional</xsd:documentation></xsd:annotation>
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"/>
56 <xsd:attribute name="attrLocal" type="integer"/>
57 <xsd:attribute ref="this:attrGlobal"/>
58 <xsd:attributeGroup ref="this:attrGroup"/>
61 <xsd:annotation><xsd:documentation xml:lang="EN">All, some elements are optional</xsd:documentation></xsd:annotation>
63 <xsd:complexType name="e29cAndAttributes">
65 <xsd:element name="foo" type="integer"/>
66 <xsd:element name="bar" type="float" minOccurs="0"/>
67 <xsd:element name="ding" type="string"/>
69 <xsd:attribute name="attrLocal" type="integer"/>
70 <xsd:attribute ref="this:attrGlobal"/>
71 <xsd:attributeGroup ref="this:attrGroup"/>
74 <xsd:element name="e29cAndAttributesReferenceOptional">
76 <xsd:group ref="this:e29a" minOccurs="0"/>
77 <xsd:attribute name="attr" type="string" />