Debian Codegraph @

schema/ditaval/xsd/ditaval.xsd

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ============================================================= -->
3 <!-- HEADER -->
4 <!-- ============================================================= -->
5 <!-- MODULE: DITA DITAVAL XML Schema -->
6 <!-- VERSION: 1.2 -->
7 <!-- DATE: November 2009 -->
8 <!-- -->
9 <!-- ============================================================= -->
10
11
12 <!-- ============================================================= -->
13 <!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
14 <!-- -->
15 <!-- PURPOSE: Filtering content -->
16 <!-- -->
17 <!-- ORIGINAL CREATION DATE: 2005 -->
18 <!-- -->
19 <!-- (C) Copyright OASIS Open 2006, 2009. -->
20 <!-- (C) Copyright IBM Corporation 2002, 2005. -->
21 <!-- All Rights Reserved. -->
22 <!-- ============================================================= -->
23 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
24
25 <xs:element name="val" type="val.class"/>
26
27 <xs:complexType name="val.class">
28 <xs:sequence>
29 <xs:group ref="val.content"/>
30 </xs:sequence>
31 <!--<xs:attributeGroup ref="val.attributes"/>-->
32 </xs:complexType>
33
34 <xs:group name="val.content">
35 <xs:sequence>
36 <xs:group ref="style-conflict" minOccurs="0"/>
37 <xs:choice minOccurs="0" maxOccurs="unbounded">
38 <xs:group ref="prop"/>
39 <xs:group ref="revprop"/>
40 </xs:choice>
41 </xs:sequence>
42 </xs:group>
43
44 <xs:element name="style-conflict" type="style-conflict.class"/>
45
46 <xs:group name="style-conflict">
47 <xs:choice>
48 <xs:element ref="style-conflict"/>
49 </xs:choice>
50 </xs:group>
51
52 <xs:complexType name="style-conflict.class">
53 <xs:attributeGroup ref="style-conflict.attributes"/>
54 </xs:complexType>
55
56 <xs:attributeGroup name="style-conflict.attributes">
57 <xs:attribute name="foreground-conflict-color" type="xs:string"/>
58 <xs:attribute name="background-conflict-color" type="xs:string"/>
59 </xs:attributeGroup>
60
61 <xs:element name="prop" type="prop.class"/>
62
63 <xs:group name="prop">
64 <xs:choice>
65 <xs:element ref="prop"/>
66 </xs:choice>
67 </xs:group>
68
69 <xs:complexType name="prop.class">
70 <xs:sequence>
71 <xs:group ref="prop.content"/>
72 </xs:sequence>
73 <xs:attributeGroup ref="prop.attributes"/>
74 </xs:complexType>
75
76 <xs:group name="prop.content">
77 <xs:sequence>
78 <xs:group ref="startflag" minOccurs="0"/>
79 <xs:group ref="endflag" minOccurs="0"/>
80 </xs:sequence>
81 </xs:group>
82
83 <xs:attributeGroup name="prop.attributes">
84 <xs:attribute name="att" type="xs:string"/>
85 <xs:attribute name="val" type="xs:string"/>
86 <xs:attribute name="action" use="required">
87 <xs:simpleType>
88 <xs:restriction base="xs:string">
89 <xs:enumeration value="include"/>
90 <xs:enumeration value="exclude"/>
91 <xs:enumeration value="passthrough"/>
92 <xs:enumeration value="flag"/>
93 </xs:restriction>
94 </xs:simpleType>
95 </xs:attribute>
96 <xs:attribute name="color" type="xs:string"/>
97 <xs:attribute name="backcolor" type="xs:string"/>
98 <xs:attribute name="style" type="style-atts.class"/>
99 </xs:attributeGroup>
100
101 <xs:element name="revprop" type="revprop.class"/>
102
103 <xs:group name="revprop">
104 <xs:choice>
105 <xs:element ref="revprop"/>
106 </xs:choice>
107 </xs:group>
108
109 <xs:complexType name="revprop.class">
110 <xs:sequence>
111 <xs:group ref="revprop.content"/>
112 </xs:sequence>
113 <xs:attributeGroup ref="revprop.attributes"/>
114 </xs:complexType>
115
116 <xs:group name="revprop.content">
117 <xs:sequence>
118 <xs:group ref="startflag" minOccurs="0"/>
119 <xs:group ref="endflag" minOccurs="0"/>
120 </xs:sequence>
121 </xs:group>
122
123 <xs:attributeGroup name="revprop.attributes">
124 <xs:attribute name="val" type="xs:string"/>
125 <xs:attribute name="action" use="required">
126 <xs:simpleType>
127 <xs:restriction base="xs:string">
128 <xs:enumeration value="include"/>
129 <xs:enumeration value="passthrough"/>
130 <xs:enumeration value="flag"/>
131 </xs:restriction>
132 </xs:simpleType>
133 </xs:attribute>
134 <xs:attribute name="color" type="xs:string"/>
135 <xs:attribute name="changebar" type="xs:string"/>
136 <xs:attribute name="backcolor" type="xs:string"/>
137 <xs:attribute name="style" type="style-atts.class"/>
138 </xs:attributeGroup>
139
140 <xs:element name="startflag" type="startflag.class"/>
141
142 <xs:group name="startflag">
143 <xs:choice>
144 <xs:element ref="startflag"/>
145 </xs:choice>
146 </xs:group>
147
148 <xs:complexType name="startflag.class">
149 <xs:sequence>
150 <xs:group ref="startflag.content"/>
151 </xs:sequence>
152 <xs:attributeGroup ref="startflag.attributes"/>
153 </xs:complexType>
154
155 <xs:group name="startflag.content">
156 <xs:sequence>
157 <xs:group ref="alt-text" minOccurs="0"/>
158 </xs:sequence>
159 </xs:group>
160
161 <xs:attributeGroup name="startflag.attributes">
162 <xs:attribute name="imageref" type="xs:string"/>
163 </xs:attributeGroup>
164
165 <xs:element name="endflag" type="endflag.class"/>
166
167 <xs:group name="endflag">
168 <xs:choice>
169 <xs:element ref="endflag"/>
170 </xs:choice>
171 </xs:group>
172
173 <xs:complexType name="endflag.class">
174 <xs:sequence>
175 <xs:group ref="endflag.content"/>
176 </xs:sequence>
177 <xs:attributeGroup ref="endflag.attributes"/>
178 </xs:complexType>
179
180 <xs:group name="endflag.content">
181 <xs:sequence>
182 <xs:group ref="alt-text" minOccurs="0"/>
183 </xs:sequence>
184 </xs:group>
185
186 <xs:attributeGroup name="endflag.attributes">
187 <xs:attribute name="imageref" type="xs:string"/>
188 </xs:attributeGroup>
189
190 <xs:element name="alt-text" type="alt-text.class"/>
191
192 <xs:group name="alt-text">
193 <xs:choice>
194 <xs:element ref="alt-text"/>
195 </xs:choice>
196 </xs:group>
197
198 <xs:complexType name="alt-text.class" mixed="true">
199 </xs:complexType>
200
201
202 <xs:simpleType name="style-atts.class">
203 <xs:restriction base="xs:string">
204 <xs:enumeration value="underline"/>
205 <xs:enumeration value="double-underline"/>
206 <xs:enumeration value="italics"/>
207 <xs:enumeration value="overline"/>
208 <xs:enumeration value="bold"/>
209 </xs:restriction>
210 </xs:simpleType>
211
212 </xs:schema>