-
Notifications
You must be signed in to change notification settings - Fork 1
/
tangsong-ci.xsd
96 lines (96 loc) · 3.7 KB
/
tangsong-ci.xsd
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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="common-doc.xsd"/>
<xs:element name="名家词选">
<xs:complexType>
<xs:sequence>
<xs:element name="标题"/>
<xs:element name="名家词" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="作家">
<xs:complexType mixed="true"/>
</xs:element>
<xs:element name="选本"/>
<xs:element name="说明" type="文段容器Type" minOccurs="0"/>
<xs:element name="词" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="词牌">
<xs:complexType mixed="true">
<xs:attribute name="id" type="xs:ID" use="optional"/>
</xs:complexType>
</xs:element>
<xs:sequence maxOccurs="unbounded">
<xs:sequence>
<xs:element name="题记" minOccurs="0">
<xs:complexType mixed="true">
<xs:complexContent mixed="true">
<xs:extension base="段落Type">
<xs:choice minOccurs="0">
<xs:element name="题注" type="段落Type" minOccurs="0"/>
</xs:choice>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="正文">
<xs:annotation>
<xs:documentation>词选中所采用的版本</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="段落" type="xs:string"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="别作版本" minOccurs="0">
<xs:annotation>
<xs:documentation>与正式版本有所出入的版本</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="题记" minOccurs="0"/>
<xs:element name="出处" minOccurs="0"/>
<xs:element name="段落"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:element name="附录" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="注释">
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="引文"/>
<xs:element ref="标记"/>
</xs:choice>
<xs:attribute name="关键字" use="required"/>
</xs:complexType>
</xs:element>
<xs:sequence>
<xs:element name="出处" type="段落Type"/>
<xs:element ref="段落" maxOccurs="unbounded"/>
</xs:sequence>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="别作版本">
<xs:selector xpath="名家词/词/别作版本"/>
<xs:field xpath="@id"/>
</xs:unique>
</xs:element>
</xs:schema>