|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
1 | 2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
2 |
| - xmlns:ex="http://xmlresolver.org/ns/sample" |
3 | 3 | elementFormDefault="qualified"
|
4 |
| - targetNamespace="http://xmlresolver.org/ns/sample"> |
| 4 | + targetNamespace="http://xmlresolver.com/ns/sample" |
| 5 | + xmlns:sample="http://xmlresolver.com/ns/sample" |
| 6 | + xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 7 | + |
| 8 | + <xs:include schemaLocation="https://xmlresolver.org/ns/sample/blocks.xsd"/> |
5 | 9 |
|
6 | 10 | <xs:import namespace="http://www.w3.org/XML/1998/namespace"
|
7 | 11 | schemaLocation="http://www.w3.org/2001/xml.xsd"/>
|
8 | 12 |
|
9 |
| - <xs:attributeGroup name="common.attributes"> |
10 |
| - <xs:attribute ref="xml:id"/> |
11 |
| - <xs:attribute ref="xml:lang"/> |
12 |
| - <xs:attribute ref="xml:base"/> |
13 |
| - </xs:attributeGroup> |
14 |
| - |
15 |
| - <xs:group name="all.inlines"> |
16 |
| - <xs:choice> |
17 |
| - <xs:group ref="ex:ubiq.inlines"/> |
18 |
| - <xs:group ref="ex:general.inlines"/> |
19 |
| - <xs:group ref="ex:domain.inlines"/> |
20 |
| - </xs:choice> |
21 |
| - </xs:group> |
22 |
| - |
23 |
| - <xs:group name="ubiq.inlines"> |
24 |
| - <xs:choice> |
25 |
| - <xs:element ref="ex:phrase"/> |
26 |
| - <xs:element ref="ex:superscript"/> |
27 |
| - <xs:element ref="ex:subscript"/> |
28 |
| - </xs:choice> |
29 |
| - </xs:group> |
30 |
| - |
31 |
| - <xs:group name="general.inlines"> |
32 |
| - <xs:choice> |
33 |
| - <xs:element ref="ex:abbrev"/> |
34 |
| - <xs:element ref="ex:emphasis"/> |
35 |
| - </xs:choice> |
36 |
| - </xs:group> |
37 |
| - |
38 |
| - <xs:group name="domain.inlines"> |
39 |
| - <xs:choice> |
40 |
| - <xs:element ref="ex:property"/> |
41 |
| - </xs:choice> |
42 |
| - </xs:group> |
43 |
| - |
44 |
| - <xs:group name="all.blocks"> |
45 |
| - <xs:choice> |
46 |
| - <xs:group ref="ex:para.blocks"/> |
47 |
| - <xs:group ref="ex:non-para.blocks"/> |
48 |
| - </xs:choice> |
49 |
| - </xs:group> |
50 |
| - |
51 |
| - <xs:group name="para.blocks"> |
52 |
| - <xs:choice> |
53 |
| - <xs:element ref="ex:p"/> |
54 |
| - </xs:choice> |
55 |
| - </xs:group> |
56 |
| - |
57 |
| - <xs:group name="non-para.blocks"> |
58 |
| - <xs:choice> |
59 |
| - <xs:element ref="ex:blockquote"/> |
60 |
| - </xs:choice> |
61 |
| - </xs:group> |
62 |
| - |
63 |
| - <!-- ============================================================ --> |
| 13 | + <xs:import namespace="http://www.w3.org/1999/xlink" |
| 14 | + schemaLocation="https://www.w3.org/1999/xlink.xsd"/> |
64 | 15 |
|
65 |
| - <xs:complexType name="inline.type" mixed="true"> |
66 |
| - <xs:choice minOccurs="0" maxOccurs="unbounded"> |
67 |
| - <xs:group ref="ex:all.inlines"/> |
68 |
| - </xs:choice> |
69 |
| - <xs:attribute name="role"/> |
70 |
| - <xs:attributeGroup ref="ex:common.attributes"/> |
71 |
| - </xs:complexType> |
72 |
| - |
73 |
| - <xs:complexType name="para.type" mixed="true"> |
74 |
| - <xs:choice minOccurs="0" maxOccurs="unbounded"> |
75 |
| - <xs:group ref="ex:all.inlines"/> |
76 |
| - <xs:group ref="ex:non-para.blocks"/> |
77 |
| - </xs:choice> |
78 |
| - <xs:attribute name="role"/> |
79 |
| - <xs:attributeGroup ref="ex:common.attributes"/> |
80 |
| - </xs:complexType> |
81 |
| - |
82 |
| - <!-- ============================================================ --> |
83 |
| - |
84 |
| - <xs:element name="doc"> |
| 16 | + <xs:element name="book"> |
85 | 17 | <xs:complexType>
|
86 | 18 | <xs:sequence>
|
87 |
| - <xs:element ref="ex:title"/> |
88 |
| - <xs:element ref="ex:xsdextra" minOccurs="0" maxOccurs="1"/> |
89 |
| - <xs:group ref="ex:all.blocks" maxOccurs="unbounded"/> |
| 19 | + <xs:element ref="sample:title"/> |
| 20 | + <xs:choice> |
| 21 | + <xs:element maxOccurs="unbounded" ref="sample:article"/> |
| 22 | + <xs:element maxOccurs="unbounded" ref="sample:chapter"/> |
| 23 | + </xs:choice> |
90 | 24 | </xs:sequence>
|
91 |
| - <xs:attribute name="role"/> |
92 |
| - <xs:attributeGroup ref="ex:common.attributes"/> |
93 | 25 | </xs:complexType>
|
94 | 26 | </xs:element>
|
95 |
| - |
96 |
| - <xs:element name="xsdextra"> |
| 27 | + <xs:element name="article"> |
97 | 28 | <xs:complexType>
|
98 |
| - <xs:complexContent> |
99 |
| - <xs:restriction base="xs:anyType"/> |
100 |
| - </xs:complexContent> |
| 29 | + <xs:sequence> |
| 30 | + <xs:element minOccurs="0" ref="sample:title"/> |
| 31 | + <xs:element maxOccurs="unbounded" ref="sample:p"/> |
| 32 | + </xs:sequence> |
101 | 33 | </xs:complexType>
|
102 | 34 | </xs:element>
|
103 |
| - |
104 |
| - <xs:element name="title" type="ex:inline.type"/> |
105 |
| - <xs:element name="p" type="ex:para.type"/> |
106 |
| - |
107 |
| - <xs:element name="blockquote"> |
| 35 | + <xs:element name="chapter"> |
108 | 36 | <xs:complexType>
|
109 | 37 | <xs:sequence>
|
110 |
| - <xs:element ref="ex:title" minOccurs="0"/> |
111 |
| - <xs:element ref="ex:p"/> |
| 38 | + <xs:element ref="sample:title"/> |
| 39 | + <xs:element maxOccurs="unbounded" ref="sample:p"/> |
112 | 40 | </xs:sequence>
|
113 |
| - <xs:attribute name="role"/> |
114 |
| - <xs:attributeGroup ref="ex:common.attributes"/> |
115 | 41 | </xs:complexType>
|
116 | 42 | </xs:element>
|
117 |
| - |
118 |
| - <xs:element name="phrase" type="ex:inline.type"/> |
119 |
| - <xs:element name="emphasis" type="ex:inline.type"/> |
120 |
| - <xs:element name="superscript" type="ex:inline.type"/> |
121 |
| - <xs:element name="subscript" type="ex:inline.type"/> |
122 |
| - <xs:element name="abbrev" type="ex:inline.type"/> |
123 |
| - <xs:element name="property" type="ex:inline.type"/> |
| 43 | + <xs:element name="title" type="xs:string"/> |
124 | 44 | </xs:schema>
|
0 commit comments