VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/schema/base/xsd/tblDeclMod.xsd@ 99507

最後變更 在這個檔案從99507是 98584,由 vboxsync 提交於 2 年 前

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 14.3 KB
 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- ============================================================= -->
3<!-- HEADER -->
4<!-- ============================================================= -->
5<!-- MODULE: XML EXCHANGE TABLE MODEL DECLARATION MODULE -->
6<!-- VERSION: 1.2 -->
7<!-- DATE: November 2009 -->
8<!-- -->
9<!-- ============================================================= -->
10<!-- ============================================================= -->
11<!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
12<!-- -->
13<!-- PURPOSE: W3C XML Schema to describe DITA Tables -->
14<!-- -->
15<!-- ORIGINAL CREATION DATE: -->
16<!-- Derived from OASIS Exchange Table Model base -->
17<!-- -->
18<!-- (C) Copyright OASIS-Open.org 2005, 2009 -->
19<!-- (C) Copyright IBM Corporation 2001, 2004. -->
20<!-- All Rights Reserved. -->
21<!-- -->
22<!-- UPDATES: -->
23<!-- 2005.11.15 EAS: Corrected definition for entry element -->
24<!-- ============================================================= -->
25<!-- XML EXCHANGE TABLE MODEL DECLARATION MODULE -->
26<!-- OASIS DITA 1.0 notes:
27 The Exchange Table Model replaces the original CALS-based model
28 used in development versions of the DITA definition.
29 This set of declarations defines the XML version of the Exchange
30 Table Model as adapted for OASIS DITA version 1.0.
31 The base for the DITA version of the Exchange Table Model is
32 defined at http://www.oasis-open.org/specs/tm9901.htm .
33 The DITA version specifically extends this model with these DITA-
34 specific content and attribute adaptations to the DITA processing
35 requirements:
36
37 STRUCTURE:
38
39 Introduce the DITA-unique <desc> element (optional after <title>); this element
40 enables more consistent presentation of both figures and tables.
41
42
43 ATTRIBUTES:
44
45 For the <table> element, add:
46 %univ-atts; which consists of:
47 %select-atts; [for selection, conditional processing]
48 %id-atts; [for conref and linking]
49 @translate + @xml:lang) [for NLS processing support]
50 %global-atts; (@xtrf + @xtrc) [for tracing and messaging support in processors]
51 @class [for specialization support]
52 @outputclass [for role designation (ie, styles, future migrations)]
53 @rowheader [for accessibility support in processing]
54 %display-atts; which consists of:
55 @scale [for presentational equivalence with other scaled exhibits: fig, pre, lines, simpletable]
56 @frame (already part of table)
57 @pgwide (already part of table, same intent as original @expanse)
58
59 For <tgroup>, <thead>, <tbody>, and <row>, add:
60 %univ-atts;
61 %global-atts;
62 @class
63 @outputclass [for role designation (ie, styles, future migrations)]
64
65 For <entry>, add:
66 %id-atts;
67 %global-atts
68 @class
69 @outputclass [for role designation (ie, styles, future migrations)]
70 @rev [for indication of revised content for flag-based processing]
71
72 -->
73<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
74 <xs:element name="table">
75 <xs:annotation>
76 <xs:documentation>
77 The &lt;<keyword>table</keyword>> element organizes arbitrarily
78 complex relationships of tabular information. This standard table markup allows
79 column or row spanning and table captions or descriptions. A optional title
80 allowed inside the table element provides a caption to describe the table.
81 See <xref href="simpletable.xml">simpletable</xref> for a simplified
82 table model that can be specialized to represent more regular relationships
83 of data.
84 </xs:documentation>
85 </xs:annotation>
86 <xs:complexType>
87 <xs:complexContent>
88 <xs:extension base="table.class">
89 <xs:attribute ref="class" default="- topic/table "/>
90 </xs:extension>
91 </xs:complexContent>
92 </xs:complexType>
93 </xs:element>
94 <xs:complexType name="table.class">
95 <xs:sequence>
96 <xs:group ref="table.content"/>
97 </xs:sequence>
98 <xs:attributeGroup ref="table.attributes"/>
99 </xs:complexType>
100
101 <xs:group name="table.content">
102 <xs:sequence>
103 <xs:sequence>
104 <xs:sequence minOccurs="0">
105 <xs:group ref="title" minOccurs="0"/>
106 <xs:group ref="desc" minOccurs="0"/>
107 </xs:sequence>
108 <xs:group ref="tgroup" maxOccurs="unbounded"/>
109 </xs:sequence>
110 </xs:sequence>
111 </xs:group>
112
113 <xs:attributeGroup name="table.attributes">
114 <xs:attributeGroup ref="colrowsep-atts"/>
115 <xs:attribute name="pgwide" type="xs:NMTOKEN"/>
116 <xs:attribute name="scale" type="scale-atts.class"/>
117 <xs:attribute name="frame" type="frame-att.class"/>
118 <xs:attribute name="rowheader" type="rowheader-att.class"/>
119 <xs:attribute name="outputclass" type="xs:string"/>
120 <xs:attributeGroup ref="univ-atts"/>
121 <xs:attributeGroup ref="global-atts"/>
122 </xs:attributeGroup>
123
124 <xs:simpleType name="rowheader-att.class">
125 <xs:restriction base="xs:string">
126 <xs:enumeration value="firstcol"/>
127 <xs:enumeration value="norowheader"/>
128 <xs:enumeration value="-dita-use-conref-target"/>
129 </xs:restriction>
130 </xs:simpleType>
131
132 <xs:element name="tgroup">
133 <xs:annotation>
134 <xs:documentation>
135 The &lt;<keyword>tgroup</keyword>> element in a table contains
136 column, row, spanning, header and footer specifications, and the body (&lt;<keyword>tbody</keyword>>)
137 of the table.
138 </xs:documentation>
139 </xs:annotation>
140 <xs:complexType>
141 <xs:complexContent>
142 <xs:extension base="tgroup.class">
143 <xs:attribute ref="class" default="- topic/tgroup "/>
144 </xs:extension>
145 </xs:complexContent>
146 </xs:complexType>
147 </xs:element>
148 <xs:complexType name="tgroup.class">
149 <xs:sequence>
150 <xs:group ref="tgroup.content"/>
151 </xs:sequence>
152 <xs:attributeGroup ref="tgroup.attributes"/>
153 </xs:complexType>
154
155 <xs:group name="tgroup.content">
156 <xs:sequence>
157 <xs:sequence>
158 <xs:group ref="colspec" minOccurs="0" maxOccurs="unbounded"/>
159 <xs:group ref="thead" minOccurs="0"/>
160 <xs:group ref="tbody"/>
161 </xs:sequence>
162 </xs:sequence>
163 </xs:group>
164
165 <xs:attributeGroup name="tgroup.attributes">
166 <xs:attribute name="cols" type="xs:NMTOKEN" use="required"/>
167 <xs:attributeGroup ref="colrowsep-atts"/>
168 <xs:attribute name="align" type="align-att.class"/>
169 <xs:attribute name="outputclass" type="xs:string"/>
170 <xs:attributeGroup ref="univ-atts"/>
171 <xs:attributeGroup ref="global-atts"/>
172 </xs:attributeGroup>
173
174 <xs:attributeGroup name="colrowsep-atts">
175 <xs:attribute name="colsep" type="xs:NMTOKEN"/>
176 <xs:attribute name="rowsep" type="xs:NMTOKEN"/>
177 </xs:attributeGroup>
178
179 <xs:element name="colspec">
180 <xs:annotation>
181 <xs:documentation>
182 The &lt;<keyword>colspec</keyword>> element contains a column specification
183 for a table, including assigning a column name and number, cell content alignment,
184 and column width.
185 </xs:documentation>
186 </xs:annotation>
187 <xs:complexType>
188 <xs:complexContent>
189 <xs:extension base="colspec.class">
190 <xs:attribute ref="class" default="- topic/colspec "/>
191 </xs:extension>
192 </xs:complexContent>
193 </xs:complexType>
194 </xs:element>
195 <xs:complexType name="colspec.class">
196 <xs:attributeGroup ref="colspec.attributes"/>
197 </xs:complexType>
198
199 <xs:attributeGroup name="colspec.attributes">
200 <xs:attribute name="colnum" type="xs:NMTOKEN"/>
201 <xs:attribute name="colname" type="xs:NMTOKEN"/>
202 <xs:attribute name="align" type="align-att.class"/>
203 <xs:attribute name="colwidth" type="xs:string"/>
204 <xs:attributeGroup ref="colrowsep-atts"/>
205 <xs:attribute name="char" type="xs:string"/>
206 <xs:attribute name="charoff" type="xs:NMTOKEN"/>
207 <xs:attribute name="base" type="xs:string" />
208 <xs:attributeGroup ref="base-attribute-extensions"/>
209 <xs:attributeGroup ref="id-atts"/>
210 <xs:attributeGroup ref="localization-atts"/>
211 <xs:attributeGroup ref="global-atts"/>
212 </xs:attributeGroup>
213
214 <xs:element name="thead">
215 <xs:annotation>
216 <xs:documentation>
217 The table header (&lt;<keyword>thead</keyword>>) element precedes
218 the table body (&lt;<keyword>tbody</keyword>>) element in a complex table.
219 </xs:documentation>
220 </xs:annotation>
221 <xs:complexType>
222 <xs:complexContent>
223 <xs:extension base="thead.class">
224 <xs:attribute ref="class" default="- topic/thead "/>
225 </xs:extension>
226 </xs:complexContent>
227 </xs:complexType>
228 </xs:element>
229 <xs:complexType name="thead.class">
230 <xs:sequence>
231 <xs:group ref="thead.content"/>
232 </xs:sequence>
233 <xs:attributeGroup ref="thead.attributes"/>
234 </xs:complexType>
235
236 <xs:group name="thead.content">
237 <xs:sequence>
238 <xs:sequence>
239 <xs:group ref="row" maxOccurs="unbounded"/>
240 </xs:sequence>
241 </xs:sequence>
242 </xs:group>
243
244 <xs:attributeGroup name="thead.attributes">
245 <xs:attribute name="valign" type="valign-att.class"/>
246 <xs:attribute name="outputclass" type="xs:string"/>
247 <xs:attributeGroup ref="univ-atts"/>
248 <xs:attributeGroup ref="global-atts"/>
249 </xs:attributeGroup>
250
251
252 <xs:element name="tbody">
253 <xs:annotation>
254 <xs:documentation>
255 The &lt;<keyword>tbody</keyword>> element contains the rows in
256 a table.
257 </xs:documentation>
258 </xs:annotation>
259 <xs:complexType>
260 <xs:complexContent>
261 <xs:extension base="tbody.class">
262 <xs:attribute ref="class" default="- topic/tbody "/>
263 </xs:extension>
264 </xs:complexContent>
265 </xs:complexType>
266 </xs:element>
267 <xs:complexType name="tbody.class">
268 <xs:sequence>
269 <xs:group ref="tbody.content"/>
270 </xs:sequence>
271 <xs:attributeGroup ref="tbody.attributes"/>
272 </xs:complexType>
273
274 <xs:group name="tbody.content">
275 <xs:sequence>
276 <xs:choice>
277 <xs:group ref="row" maxOccurs="unbounded"/>
278 </xs:choice>
279 </xs:sequence>
280 </xs:group>
281
282 <xs:attributeGroup name="tbody.attributes">
283 <xs:attribute name="valign" type="valign-att.class"/>
284 <xs:attribute name="outputclass" type="xs:string"/>
285 <xs:attributeGroup ref="univ-atts"/>
286 <xs:attributeGroup ref="global-atts"/>
287 </xs:attributeGroup>
288
289
290 <xs:element name="row">
291 <xs:annotation>
292 <xs:documentation>The &lt;<keyword>row</keyword>> element contains a single row in
293 a table &lt;<keyword>tgroup</keyword>>.
294 </xs:documentation>
295 </xs:annotation>
296 <xs:complexType>
297 <xs:complexContent>
298 <xs:extension base="row.class">
299 <xs:attribute ref="class" default="- topic/row "/>
300 </xs:extension>
301 </xs:complexContent>
302 </xs:complexType>
303 </xs:element>
304 <xs:complexType name="row.class">
305 <xs:sequence>
306 <xs:group ref="row.content"/>
307 </xs:sequence>
308 <xs:attributeGroup ref="row.attributes"/>
309 </xs:complexType>
310
311 <xs:group name="row.content">
312 <xs:sequence>
313 <xs:choice>
314 <xs:group ref="entry" maxOccurs="unbounded"/>
315 </xs:choice>
316 </xs:sequence>
317 </xs:group>
318
319 <xs:attributeGroup name="row.attributes">
320 <xs:attribute name="rowsep" type="xs:string"/>
321 <xs:attribute name="valign" type="valign-att.class"/>
322 <xs:attribute name="outputclass" type="xs:string"/>
323 <xs:attributeGroup ref="univ-atts"/>
324 <xs:attributeGroup ref="global-atts"/>
325 </xs:attributeGroup>
326
327
328 <xs:element name="entry">
329 <xs:annotation>
330 <xs:documentation>The &lt;<keyword>entry</keyword>> element defines a single cell
331 in a table.
332 </xs:documentation>
333 </xs:annotation>
334 <xs:complexType>
335 <xs:complexContent>
336 <xs:extension base="entry.class">
337 <xs:attribute ref="class" default="- topic/entry "/>
338 </xs:extension>
339 </xs:complexContent>
340 </xs:complexType>
341 </xs:element>
342 <xs:complexType name="entry.class" mixed="true">
343 <xs:sequence>
344 <xs:group ref="entry.content"/>
345 </xs:sequence>
346 <xs:attributeGroup ref="entry.attributes"/>
347 <!-- added DITA attributes -->
348 </xs:complexType>
349
350 <xs:group name="entry.content">
351 <xs:sequence>
352 <xs:choice minOccurs="0" maxOccurs="unbounded">
353 <xs:group ref="tblcell.cnt"/>
354 </xs:choice>
355 </xs:sequence>
356 </xs:group>
357
358 <xs:attributeGroup name="entry.attributes">
359 <xs:attribute name="namest" type="xs:NMTOKEN"/>
360 <xs:attribute name="nameend" type="xs:NMTOKEN"/>
361 <xs:attribute name="colname" type="xs:NMTOKEN"/>
362 <xs:attribute name="morerows" type="xs:NMTOKEN"/>
363 <xs:attribute name="char" type="xs:string"/>
364 <xs:attribute name="charoff" type="xs:NMTOKEN"/>
365 <xs:attributeGroup ref="colrowsep-atts"/>
366 <xs:attribute name="align" type="align-att.class"/>
367 <xs:attribute name="valign" type="valign-att.class"/>
368 <xs:attribute name="rev" type="xs:string"/>
369 <xs:attribute name="outputclass" type="xs:string"/>
370 <xs:attribute name="base" type="xs:string" />
371 <xs:attributeGroup ref="base-attribute-extensions"/>
372 <xs:attributeGroup ref="id-atts"/>
373 <xs:attributeGroup ref="localization-atts"/>
374 <xs:attributeGroup ref="global-atts"/>
375 </xs:attributeGroup>
376
377
378
379 <xs:simpleType name="align-att.class">
380 <xs:restriction base="xs:string">
381 <xs:enumeration value="left"/>
382 <xs:enumeration value="right"/>
383 <xs:enumeration value="center"/>
384 <xs:enumeration value="justify"/>
385 <xs:enumeration value="-dita-use-conref-target"/>
386 </xs:restriction>
387 </xs:simpleType>
388 <xs:simpleType name="valign-att.class">
389 <xs:restriction base="xs:string">
390 <xs:enumeration value="top"/>
391 <xs:enumeration value="middle"/>
392 <xs:enumeration value="bottom"/>
393 <xs:enumeration value="-dita-use-conref-target"/>
394 </xs:restriction>
395 </xs:simpleType>
396</xs:schema>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette