File: BadSchema.xsd

package info (click to toggle)
eclipse-emf 2.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 50,964 kB
  • sloc: java: 407,889; xml: 7,165; sh: 200; makefile: 13
file content (156 lines) | stat: -rwxr-xr-x 4,586 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * <copyright>
 * </copyright>
 *
 * $Id: BadSchema.xsd,v 1.1 2005/06/13 14:08:22 marcelop Exp $
 */
-->
<xsd:schema
  targetNamespace="http://www.example.com/Bad##"
  xmlns:this="http://www.example.com/Bad##" 
  xmlns:other="http://www.example.com/Other" 
  xmlns:notOther="http://www.example.com/NotOther" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  id="id:schema"
  bad="bad"
  attributeFormDefault="qalified" 
  blockDefault="restiction" 
  elementFormDefault="qalified" 
  finalDefault="exention"
  version="1">

    <xsd:annotation/>
    <xsd:annotation>
        <xsd:bad/>
        <xsd:appinfo/>
        <xsd:documentation/>
    </xsd:annotation>

    <xsd:import namespace="http://www.example.com/Bad##"/>
    <xsd:import namespace="http://www.example.com/NotOther" schemaLocation="Other.xsd"/>
    <xsd:import namespace="http://www.example.com/NotUsed"/>
    <xsd:import/>
    
    <xsd:include/>
    <xsd:include id="id:include" schemaLocation="BadSchema.xsd"/>
    <xsd:include schemaLocation="BadSchema.xsd">
        <xsd:annotation/>
        <xsd:annotation/>
    </xsd:include>
    <xsd:include schemaLocation="Other.xsd"/>
    <xsd:include schemaLocation="Nothing.xsd"/>
    <xsd:include schemaLocation="Bad.xsd"/>

    <xsd:redefine/>
    <xsd:redefine id="id:redefine" schemaLocation="BadSchema.xsd"/>
    <xsd:redefine schemaLocation="BadSchema.xsd">
        <xsd:bad/>
    </xsd:redefine>
    <xsd:redefine schemaLocation="Other.xsd"/>
    <xsd:redefine schemaLocation="Nothing.xsd"/>
    <xsd:redefine schemaLocation="Nothing.xsd">
        <xsd:complexType name="T">
            <xsd:complexContent>
               <xsd:extension base="this:T">
               </xsd:extension>
            </xsd:complexContent>
        </xsd:complexType>
    </xsd:redefine>

    <xsd:redefine schemaLocation="Okay.xsd">
        <xsd:simpleType name="S">
           <xsd:restriction base="this:S">
               <xsd:pattern value="..*"/>
           </xsd:restriction>
        </xsd:simpleType>
        <xsd:complexType name="CT">
           <xsd:complexContent>
               <xsd:restriction base="this:CT">
                   <xsd:sequence>
                       <xsd:element name="bad"/>
                   </xsd:sequence>
               </xsd:restriction>
           </xsd:complexContent>
        </xsd:complexType>
        <xsd:group name="G">
            <xsd:sequence>
                <xsd:group ref="this:G" minOccurs="0"/>
                <xsd:group ref="this:G"/>
            </xsd:sequence>
        </xsd:group>
        <xsd:group name="GG">
            <xsd:sequence>
            </xsd:sequence>
        </xsd:group>
        <xsd:group name="G1">
            <xsd:sequence>
                <xsd:element name="bad"/>
            </xsd:sequence>
        </xsd:group>
        <xsd:attributeGroup name="AG">
            <xsd:attributeGroup ref="this:AG"/>
            <xsd:attributeGroup ref="this:AG"/>
        </xsd:attributeGroup>
        <xsd:attributeGroup name="AGG">
            <xsd:attributeGroup ref="this:AGG"/>
        </xsd:attributeGroup>
        <xsd:attributeGroup name="AG1">
            <xsd:attribute ref="this:A"/>
            <xsd:anyAttribute namespace="##other"/>
        </xsd:attributeGroup>
        <xsd:simpleType name="ST">
           <xsd:restriction base="this:ST">
               <xsd:pattern value="..*"/>
           </xsd:restriction>
        </xsd:simpleType>
        <xsd:group name="G2">
            <xsd:sequence>
            </xsd:sequence>
        </xsd:group>
    </xsd:redefine>

    <xsd:element name="e"/>
    <xsd:element name="e"/>

    <xsd:import namespace="http://www.example.com/Other" schemaLocation="Other.xsd"/>

    <xsd:attribute name="a"/>
    <xsd:attribute name="a"/>

    <xsd:attributeGroup name="ag"/>
    <xsd:attributeGroup name="ag"/>

    <xsd:group name="g">
      <xsd:sequence>
      </xsd:sequence>
    </xsd:group>
    <xsd:group name="g">
      <xsd:sequence>
      </xsd:sequence>
    </xsd:group>

    <xsd:complexType name="t"/>
    <xsd:complexType name="t"/>

    <xsd:notation name="n" public="x"/>
    <xsd:notation name="n" public="x"/>

    <xsd:element name="e1">
        <xsd:key name="k"> 
            <xsd:selector xpath="."/>
            <xsd:field xpath="."/>
        </xsd:key>
    </xsd:element>
    <xsd:element name="e2">
        <xsd:key name="k"> 
            <xsd:selector xpath="."/>
            <xsd:field xpath="."/>
        </xsd:key>
    </xsd:element>

    <xsd:element name="e2" type="notOther:Type"/>

</xsd:schema>