File: qname.xsd

package info (click to toggle)
eclipse-emf 2.24.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 62,044 kB
  • sloc: java: 644,589; xml: 11,649; makefile: 5
file content (45 lines) | stat: -rw-r--r-- 1,415 bytes parent folder | download | duplicates (8)
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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" 
    targetNamespace="http:///org.eclipse.emf.test.models/qname" 
    xmlns="http:///org.eclipse.emf.test.models/qname" xmlns:xs="http://www.w3.org/2001/XMLSchema">
   
   <xs:element name="resource" type="resourceType" />

   <xs:complexType name="resourceType" mixed="false">
      <xs:sequence>
         <xs:element name="unionvalue" type="intQNameUnion" />
         <xs:element name="qnamelist" type="qnameList" />
         <xs:element name="intvalue" type="xs:int" />
         <xs:any minOccurs="0" namespace="##any" />
      </xs:sequence>
      <xs:attribute name="myQname" type="qnameList" />
      <xs:anyAttribute namespace="##any" />
   </xs:complexType>

   <xs:attribute name="aInt" type="xs:int" />

   <xs:attribute name="aQname" type="xs:QName" />

   <xs:attribute name="aUnion" type="listUnion" />

   <xs:element name="anyE" type="xs:QName" />

   <xs:element name="anyEU" type="listUnion" />

   <xs:simpleType name="qnameList">
      <xs:list itemType="xs:QName" />
   </xs:simpleType>

   <xs:simpleType name="listUnion">
      <xs:list itemType="Union" />
   </xs:simpleType>

   <xs:simpleType name="Union">
      <xs:union memberTypes="xs:boolean intQNameUnion" />
   </xs:simpleType>

   <xs:simpleType name="intQNameUnion">
      <xs:union memberTypes="xs:int xs:QName" />
   </xs:simpleType>
</xs:schema>