-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtangsong-ci-format.xsd
62 lines (62 loc) · 2.42 KB
/
tangsong-ci-format.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
<?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="类别" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="名称"/>
<xs:element name="词牌" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="名称" maxOccurs="unbounded"/>
<xs:element name="说明" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="段落" type="段落Type" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="正文" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="段落" type="段落Type" minOccurs="0" maxOccurs="unbounded"/>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="格律" maxOccurs="unbounded"/>
<xs:element name="例词" type="链接Type" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:element name="附注" type="段落Type" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="相关链接" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element ref="链接" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="格律">
<xs:complexType>
<xs:complexContent>
<xs:extension base="段落Type">
<xs:attribute name="说明" type="xs:string" use="required"/>
<xs:attribute name="押韵" type="xs:string" use="optional"/>
<xs:attribute name="类别" type="xs:string" use="optional"/>
<xs:attribute name="例词" type="xs:string" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:schema>