/
xldf.xsd
152 lines (141 loc) · 4.62 KB
/
xldf.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
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
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:bgf="http://planet-sl.org/bgf"
xmlns:xbgf="http://planet-sl.org/xbgf"
xmlns:ldf="http://planet-sl.org/ldf"
xmlns:xldf="http://planet-sl.org/xldf"
targetNamespace="http://planet-sl.org/xldf">
<xsd:annotation>
<xsd:documentation>
LDF transformations
</xsd:documentation>
</xsd:annotation>
<xsd:element name="sequence">
<xsd:annotation>
<xsd:documentation>
Sequential composition of multiple transformations.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:group ref="xldf:transformation" minOccurs="0" maxOccurs="unbounded"/>
</xsd:complexType>
</xsd:element>
<xsd:group name="transformation">
<xsd:annotation>
<xsd:documentation>
Here is a grouped list of all the XLDF transformations.
</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element ref="xldf:insert"/>
<xsd:element ref="xldf:move"/>
<xsd:element ref="xldf:rename"/>
<xsd:element ref="xldf:append"/>
<xsd:element ref="xldf:add-section"/>
</xsd:choice>
</xsd:group>
<xsd:element name="insert">
<xsd:annotation>
<xsd:documentation>
TBD
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:choice>
<xsd:element name="before">
<xsd:complexType>
<xsd:group ref="xldf:insideSimpleText"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="after">
<xsd:complexType>
<xsd:group ref="xldf:insideSimpleText"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
<xsd:element name="content" type="xldf:SimpleText"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="add-section">
<xsd:annotation>
<xsd:documentation>
TBD
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice>
<xsd:element name="front" type="xldf:frontMatter"/>
<xsd:element name="list" type="xldf:frontLists"/>
<xsd:element name="lexical" type="xldf:lexical"/>
<xsd:element name="core" type="xldf:StructuredSection"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="move">
<xsd:annotation>
<xsd:documentation>
TBD
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="section" type="xsd:string"/> <!-- IDREF -->
<xsd:element name="inside" type="xsd:string"/> <!-- IDREF -->
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="rename">
<xsd:annotation>
<xsd:documentation>
TBD
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="from">
<xsd:complexType>
<xsd:choice>
<xsd:element name="id" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="to" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="append">
<xsd:annotation>
<xsd:documentation>
TBD
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="where" type="xsd:string"/> <!-- IDREF -->
<xsd:element name="content" type="xldf:SimpleText"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:group name="scope">
<xsd:annotation>
<xsd:documentation>
Several transformation operators are possibly restricted to
a specific scope as opposed to their application to the full
input grammar. Two major forms of scope can be identified.
First, a production can be appointed by its label. Second, a
definition (nonterminal) can be appointed by its defined
nonterminal. Arguably, one may want to be able to appoint a
production even when it is not labeled, but a prior designate
transformation can then be used in order to attach a label
to the production in question.
</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="label" type="xldf:label"/>
<xsd:element name="nonterminal" type="xldf:nonterminal"/>
</xsd:choice>
</xsd:group>
</xsd:schema>