VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/plugins/org.dita.specialization.dita11/schema/mapMod.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
檔案大小: 22.3 KB
 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- ============================================================= -->
3<!-- HEADER -->
4<!-- ============================================================= -->
5<!-- ============================================================= -->
6<!-- MODULE: DITA MAP XSD Module -->
7<!-- VERSION: 1.1 -->
8<!-- DATE: November 2006 -->
9<!-- -->
10<!-- ============================================================= -->
11
12<!-- ============================================================= -->
13<!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
14<!-- -->
15<!-- PURPOSE: W3C XML Schema to describe DITA maps -->
16<!-- -->
17<!-- ORIGINAL CREATION DATE: -->
18<!-- March 2001 -->
19<!-- -->
20<!-- (C) Copyright OASIS-Open.org 2005, 2006 -->
21<!-- (C) Copyright IBM Corporation 2001, 2004. -->
22<!-- All Rights Reserved. -->
23<!-- -->
24<!-- UPDATES: -->
25<!-- 2005.11.15 EAS: Moved domains attribute definition to -->
26<!-- map.xsd -->
27<!-- ============================================================= -->
28 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
29
30 <!-- ======= IMPORT - XML attributes and namespace ======= -->
31 <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="urn:oasis:names:tc:dita:xsd:xml.xsd:1.1"/>
32 <xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="urn:oasis:names:tc:dita:xsd:ditaarch.xsd:1.1"/>
33
34 <!-- STRUCTURAL MEMBERS ======================================================== -->
35 <!-- things that can be nested under topic after body - redefined when specializing -->
36 <!--xs:simpleType name="topicreftypes.class">
37 <xs:restriction base="xs:string">
38 <xs:enumeration value="topic"/>
39 <xs:enumeration value="concept"/>
40 <xs:enumeration value="task"/>
41 <xs:enumeration value="reference"/>
42 <xs:enumeration value="external"/>
43 <xs:enumeration value="local"/>
44 </xs:restriction>
45 </xs:simpleType>-->
46
47 <xs:attributeGroup name="topicref-atts">
48 <xs:annotation>
49 <xs:documentation>
50 The %topicref-atts; parameter entity represents a group of attributes
51 used in numerous map elements: map, topicref, relcolspec, relcell, topichead,
52 and topicgroup. The set is similar to those documented in <ph><xref href="topicref-atts-no-toc.xml">topicref-atts-no-toc</xref></ph> but
53 includes the <i><keyword>toc</keyword></i> attribute.
54 </xs:documentation>
55 </xs:annotation>
56 <xs:attribute name="collection-type" type="collection-type.class"/>
57 <xs:attribute name="type" type="xs:string"/>
58 <xs:attribute name="scope" type="scope-att.class"/>
59 <xs:attribute name="locktitle" type="yesno-att.class"/>
60 <xs:attribute name="format" type="xs:string"/>
61 <xs:attribute name="linking" type="linkingtypes.class"/>
62 <xs:attribute name="toc" type="yesno-att.class"/>
63 <xs:attribute name="print" type="yesno-att.class"/>
64 <xs:attribute name="search" type="yesno-att.class"/>
65 <xs:attribute name="chunk" type="xs:string"/>
66 </xs:attributeGroup>
67
68 <xs:simpleType name="collection-type.class">
69 <xs:restriction base="xs:string">
70 <xs:enumeration value="choice"/>
71 <xs:enumeration value="unordered"/>
72 <xs:enumeration value="sequence"/>
73 <xs:enumeration value="family"/>
74 <xs:enumeration value="-dita-use-conref-target"/>
75 </xs:restriction>
76 </xs:simpleType>
77
78 <xs:simpleType name="linkingtypes.class">
79 <xs:restriction base="xs:string">
80 <xs:enumeration value="targetonly"/>
81 <xs:enumeration value="sourceonly"/>
82 <xs:enumeration value="normal"/>
83 <xs:enumeration value="none"/>
84 <xs:enumeration value="-dita-use-conref-target"/>
85 </xs:restriction>
86 </xs:simpleType>
87
88
89 <xs:attributeGroup name="topicref-atts-no-toc">
90 <xs:annotation>
91 <xs:documentation>
92 The %topicref-atts-no-toc; parameter entity represents the set
93 of attributes used in the <ph><xref href="reltable.xml">reltable</xref></ph> map
94 element. The set is similar to those documented in <ph><xref href="topicref-atts.xml">topicref-atts</xref></ph> but
95 for &lt;<keyword>reltable</keyword>&gt; the <i><keyword>toc</keyword></i> attribute
96 defaults to <q>no</q>. For the other elements that use the %topicref-atts;
97 group declaration, the <i><keyword>toc</keyword></i> attribute doesn't have
98 a default; they can inherit their <i><keyword>toc</keyword></i> value from
99 the nearest container, otherwise it functions upon output as if set to <q>yes</q>.
100 </xs:documentation>
101 </xs:annotation>
102 <xs:attribute name="collection-type" type="collection-type.class"/>
103 <xs:attribute name="type" type="xs:string"/>
104 <xs:attribute name="scope" type="scope-att.class"/>
105 <xs:attribute name="locktitle" type="yesno-att.class"/>
106 <xs:attribute name="format" type="xs:string"/>
107 <xs:attribute name="linking" type="linkingtypes.class"/>
108 <xs:attribute name="toc" type="yesno-att.class" default="no"/>
109 <xs:attribute name="print" type="yesno-att.class"/>
110 <xs:attribute name="search" type="yesno-att.class"/>
111 <xs:attribute name="chunk" type="xs:string"/>
112 </xs:attributeGroup>
113
114
115
116 <xs:element name="map">
117 <xs:annotation>
118 <xs:documentation>
119 The &lt;<keyword>map</keyword>&gt; element is used to define a map
120 which describes the relationships among a set of DITA topics. Maps consist
121 of references to topics organized into hierarchies and tables. Maps provide
122 a way to express these relationships in a single common format that can be
123 used for different outputs.
124 </xs:documentation>
125 </xs:annotation>
126 <xs:complexType>
127 <xs:complexContent>
128 <xs:extension base="map.class">
129 <xs:attribute ref="class" default="- map/map " />
130 </xs:extension>
131 </xs:complexContent>
132 </xs:complexType>
133 </xs:element>
134 <xs:complexType name="map.class" >
135 <xs:sequence>
136 <xs:group ref="title" minOccurs="0" />
137 <xs:group ref="topicmeta" minOccurs="0" />
138 <xs:choice minOccurs="0" maxOccurs="unbounded">
139 <xs:group ref="navref" />
140 <xs:group ref="anchor" />
141 <xs:group ref="topicref" />
142 <xs:group ref="reltable" />
143 <xs:group ref="data.element.incl" />
144 </xs:choice>
145 </xs:sequence>
146 <xs:attribute name="title" type="xs:string" />
147 <xs:attribute name="id" type="xs:ID" />
148 <xs:attribute name="conref" type="xs:string" />
149 <xs:attribute name="anchorref" type="xs:string" />
150 <xs:attribute name="outputclass" type="xs:string" />
151 <xs:attributeGroup ref="topicref-atts" />
152 <xs:attributeGroup ref="select-atts" />
153 <xs:attributeGroup ref="localization-atts"/>
154 <xs:attribute ref="ditaarch:DITAArchVersion"/>
155 <xs:attributeGroup ref="global-atts" />
156 </xs:complexType>
157
158 <xs:element name="navref">
159 <xs:annotation>
160 <xs:documentation>
161 The &lt;<keyword>navref</keyword>&gt; element references a map file
162 from within a map file. The reference is resolved at runtime for Eclipse
163 navigation, typically to pull together the navigation for multiple components
164 into a product navigation. <ph conref="commonLRdefs.xml#commonLRdefs/only4eclipse"></ph>
165 </xs:documentation>
166 </xs:annotation>
167 <xs:complexType>
168 <xs:complexContent>
169 <xs:extension base="navref.class">
170 <xs:attribute ref="class" default="- map/navref " />
171 </xs:extension>
172 </xs:complexContent>
173 </xs:complexType>
174 </xs:element>
175 <xs:complexType name="navref.class">
176 <xs:attributeGroup ref="univ-atts"/>
177 <xs:attribute name="outputclass" type="xs:string" />
178 <xs:attribute name="mapref" type="xs:string"/>
179 <xs:attributeGroup ref="global-atts" />
180
181 </xs:complexType>
182
183 <xs:element name="topicref">
184 <xs:annotation>
185 <xs:documentation>
186 The &lt;<keyword>topicref</keyword>&gt; element designates a topic
187 (such as a concept, task, or reference) as a link in a DITA map. A &lt;<keyword>topicref</keyword>&gt;
188 can contain other&lt;<keyword>topicref</keyword>&gt; elements, allowing you to
189 express navigation or table-of-contents hierarchies, as well as implying relationships
190 between the containing &lt;<keyword>topicref</keyword>&gt; and its children.
191 You can set the collection-type of a container &lt;<keyword>topicref</keyword>&gt;
192 to determine how its children are related to each other. Relationships end
193 up expressed as links in the output (with each participant in a relationship
194 having links to the other participants).
195 </xs:documentation>
196 </xs:annotation>
197 <xs:complexType>
198 <xs:complexContent>
199 <xs:extension base="topicref.class">
200 <xs:attribute ref="class" default="- map/topicref " />
201 </xs:extension>
202 </xs:complexContent>
203 </xs:complexType>
204 </xs:element>
205 <xs:complexType name="topicref.class">
206 <xs:sequence>
207 <xs:group ref="topicmeta" minOccurs="0"/>
208 <xs:choice minOccurs="0" maxOccurs="unbounded">
209 <xs:group ref="navref" />
210 <xs:group ref="anchor" />
211 <xs:group ref="topicref" />
212 <xs:group ref="data.element.incl" />
213 </xs:choice>
214 </xs:sequence>
215 <xs:attribute name="navtitle" type="xs:string"/>
216 <xs:attribute name="href" type="xs:string"/>
217 <xs:attribute name="keyref" type="xs:string"/>
218 <xs:attribute name="query" type="xs:string"/>
219 <xs:attribute name="copy-to" type="xs:string"/>
220 <xs:attributeGroup ref="topicref-atts" />
221 <xs:attributeGroup ref="univ-atts" />
222 <xs:attribute name="outputclass" type="xs:string"/>
223 <xs:attributeGroup ref="global-atts" />
224 </xs:complexType>
225
226 <xs:element name="reltable">
227 <xs:annotation>
228 <xs:documentation>
229 The relationship table (&lt;<keyword>reltable</keyword>&gt;) defines
230 relationships between topics, based on the familiar table model of rows (&lt;<keyword>relrow</keyword>&gt;),
231 columns (&lt;<keyword>relheader</keyword>&gt;), and cells (&lt;<keyword>relcell</keyword>>).
232 The &lt;<keyword>relcell</keyword>&gt; elements can contain &lt;<keyword>topicref</keyword>&gt;
233 elements, which are then related to other &lt;<keyword>topicref</keyword>&gt;
234 elements in the same row (although not necessarily in the same cell). By default,
235 the contents of a &lt;<keyword>reltable</keyword>&gt; element are not output
236 for navigation or TOC purposes, and are used only to define relationships
237 that can be expressed as topic-to-topic links.
238 </xs:documentation>
239 </xs:annotation>
240 <xs:complexType>
241 <xs:complexContent>
242 <xs:extension base="reltable.class">
243 <xs:attribute ref="class" default="- map/reltable " />
244 </xs:extension>
245 </xs:complexContent>
246 </xs:complexType>
247 </xs:element>
248 <xs:complexType name="reltable.class">
249 <xs:sequence>
250 <xs:group ref="topicmeta" minOccurs="0" />
251 <xs:group ref="relheader" minOccurs="0" />
252 <xs:group ref="relrow" maxOccurs="unbounded" />
253 </xs:sequence>
254 <xs:attribute name="title" type="xs:string" />
255 <xs:attributeGroup ref="topicref-atts-no-toc" />
256 <xs:attributeGroup ref="univ-atts" />
257 <xs:attribute name="outputclass" type="xs:string"/>
258 <xs:attributeGroup ref="global-atts" />
259 </xs:complexType>
260
261 <xs:element name="relheader">
262 <xs:annotation>
263 <xs:documentation>
264 The &lt;<keyword>relheader</keyword>&gt; element is a row of column
265 definitions (&lt;<keyword>relcolspec</keyword>&gt; elements) in a relationship
266 table. Each table can have only one set of column definitions.
267 </xs:documentation>
268 </xs:annotation>
269 <xs:complexType>
270 <xs:complexContent>
271 <xs:extension base="relheader.class">
272 <xs:attribute ref="class" default="- map/relheader " />
273 </xs:extension>
274 </xs:complexContent>
275 </xs:complexType>
276 </xs:element>
277 <xs:complexType name="relheader.class">
278 <xs:sequence maxOccurs="unbounded">
279 <xs:group ref="relcolspec" />
280 </xs:sequence>
281 <xs:attributeGroup ref="univ-atts" />
282 <xs:attributeGroup ref="global-atts" />
283 </xs:complexType>
284
285 <xs:element name="relcolspec">
286 <xs:annotation>
287 <xs:documentation>
288 A column definition in the relationship table. You can use &lt;<keyword>relcolspec</keyword>&gt;
289 column definitions to set defaults for the attributes of &lt;<keyword>topicref</keyword>&gt;
290 elements in the column. For example, you can set type="concept" to treat all
291 untyped &lt;<keyword>topicref</keyword>&gt; elements in the column as concepts.
292 </xs:documentation>
293 </xs:annotation>
294 <xs:complexType>
295 <xs:complexContent>
296 <xs:extension base="relcolspec.class">
297 <xs:attribute ref="class" default="- map/relcolspec " />
298 </xs:extension>
299 </xs:complexContent>
300 </xs:complexType>
301 </xs:element>
302 <xs:complexType name="relcolspec.class">
303 <xs:sequence minOccurs="0">
304 <xs:group ref="topicmeta" />
305 </xs:sequence>
306 <xs:attributeGroup ref="univ-atts" />
307 <xs:attributeGroup ref="topicref-atts" />
308 <xs:attribute name="outputclass" type="xs:string"/>
309 <xs:attributeGroup ref="global-atts" />
310 </xs:complexType>
311
312 <xs:element name="relrow">
313 <xs:annotation>
314 <xs:documentation>
315 A &lt;<keyword>relrow</keyword>&gt; is a row in the relationship table.
316 This creates a relationship between the cells in the row, which will end up
317 expressed as links among the &lt;<keyword>topicref</keyword>&gt; elements in
318 the cells.
319 </xs:documentation>
320 </xs:annotation>
321 <xs:complexType>
322 <xs:complexContent>
323 <xs:extension base="relrow.class">
324 <xs:attribute ref="class" default="- map/relrow " />
325 </xs:extension>
326 </xs:complexContent>
327 </xs:complexType>
328 </xs:element>
329 <xs:complexType name="relrow.class">
330 <xs:sequence minOccurs="0" maxOccurs="unbounded">
331 <xs:group ref="relcell" />
332 </xs:sequence>
333 <xs:attributeGroup ref="univ-atts" />
334 <xs:attribute name="outputclass" type="xs:string"/>
335 <xs:attributeGroup ref="global-atts" />
336 </xs:complexType>
337
338 <xs:element name="relcell">
339 <xs:annotation>
340 <xs:documentation>
341 A &lt;<keyword>relcell</keyword>&gt; element is a cell in the relationship
342 table. The &lt;<keyword>topicref</keyword>&gt; elements it contains will be related
343 to topicrefs in other cells of the same row. By default, topicrefs in the
344 same cell are not related to each other, unless you change the relcell's collection-type
345 attribute to indicate that they are related.
346 </xs:documentation>
347 </xs:annotation>
348 <xs:complexType>
349 <xs:complexContent>
350 <xs:extension base="relcell.class">
351 <xs:attribute ref="class" default="- map/relcell " />
352 </xs:extension>
353 </xs:complexContent>
354 </xs:complexType>
355 </xs:element>
356 <xs:complexType name="relcell.class">
357 <xs:choice minOccurs="0" maxOccurs="unbounded">
358 <xs:group ref="topicref" />
359 <xs:group ref="data.element.incl" />
360 </xs:choice>
361 <xs:attributeGroup ref="univ-atts" />
362 <xs:attributeGroup ref="topicref-atts" />
363 <xs:attribute name="outputclass" type="xs:string"/>
364 <xs:attributeGroup ref="global-atts" />
365 </xs:complexType>
366
367
368 <xs:element name="anchor">
369 <xs:annotation>
370 <xs:documentation>
371 The &lt;<keyword>anchor</keyword>&gt; element is used for runtime
372 integration of navigation. It provides an integration point that another map
373 can point to in order to insert its navigation into the current navigation
374 tree. It is currently supported by Eclipse output only.
375 </xs:documentation>
376 </xs:annotation>
377 <xs:complexType>
378 <xs:complexContent>
379 <xs:extension base="anchor.class">
380 <xs:attribute ref="class" default="- map/anchor " />
381 </xs:extension>
382 </xs:complexContent>
383 </xs:complexType>
384 </xs:element>
385 <xs:complexType name="anchor.class">
386 <xs:attribute name="id" type="xs:ID" use="required"/>
387 <xs:attribute name="outputclass" type="xs:string"/>
388 <xs:attribute name="conref" type="xs:string"/>
389 <xs:attributeGroup ref="localization-atts"/>
390 <xs:attributeGroup ref="select-atts" />
391 <xs:attributeGroup ref="global-atts" />
392 </xs:complexType>
393
394 <xs:element name="topicmeta">
395 <xs:annotation>
396 <xs:documentation>
397 The &lt;<keyword>topicmeta</keyword>&gt; element defines the metadata
398 that applies to a topic and the topic's children. When creating links, it
399 can also be used to override the title and short description of the topic.
400 In addition, it can insert index entries through the &lt;<keyword>keywords</keyword>&gt;
401 element.
402 </xs:documentation>
403 </xs:annotation>
404 <xs:complexType>
405 <xs:complexContent>
406 <xs:extension base="topicmeta.class">
407 <xs:attribute ref="class" default="- map/topicmeta " />
408 </xs:extension>
409 </xs:complexContent>
410 </xs:complexType>
411 </xs:element>
412 <xs:complexType name="topicmeta.class" >
413 <xs:sequence>
414 <xs:group ref="linktext" minOccurs="0"/>
415 <xs:group ref="searchtitle" minOccurs="0"/>
416 <xs:group ref="shortdesc" minOccurs="0"/>
417 <xs:group ref="author" minOccurs="0" maxOccurs="unbounded"/>
418 <xs:group ref="source" minOccurs="0"/>
419 <xs:group ref="publisher" minOccurs="0"/>
420 <xs:group ref="copyright" minOccurs="0" maxOccurs="unbounded"/>
421 <xs:group ref="critdates" minOccurs="0"/>
422 <xs:group ref="permissions" minOccurs="0"/>
423 <xs:group ref="audience" minOccurs="0" maxOccurs="unbounded"/>
424 <xs:group ref="category" minOccurs="0" maxOccurs="unbounded"/>
425 <xs:group ref="keywords" minOccurs="0" maxOccurs="unbounded"/>
426 <xs:group ref="prodinfo" minOccurs="0" maxOccurs="unbounded"/>
427 <xs:group ref="othermeta" minOccurs="0" maxOccurs="unbounded"/>
428 <xs:group ref="resourceid" minOccurs="0" maxOccurs="unbounded"/>
429 <xs:choice minOccurs="0" maxOccurs="unbounded">
430 <xs:group ref="data.element.incl" />
431 <xs:group ref="foreign.unknown.incl" />
432 </xs:choice>
433 </xs:sequence>
434 <xs:attribute name="lockmeta" type="yesno-att.class"/>
435 <xs:attributeGroup ref="univ-atts"/>
436 <xs:attributeGroup ref="global-atts" />
437 </xs:complexType>
438
439 <xs:element name="linktext">
440 <xs:annotation>
441 <xs:documentation>
442 The &lt;<keyword>linktext</keyword>&gt; element provides the literal
443 label or line of text for a link. In most cases, the text of a link can be
444 resolved during processing by cross reference with the target resource. Use
445 the &lt;<keyword>linktext</keyword>&gt; element only when the target cannot be
446 reached, such as when it is a peer or external link.
447 </xs:documentation>
448 </xs:annotation>
449 <xs:complexType mixed="true">
450 <xs:complexContent>
451 <xs:extension base="linktext.class">
452 <xs:attribute ref="class" default="- map/linktext " />
453 </xs:extension>
454 </xs:complexContent>
455 </xs:complexType>
456 </xs:element>
457 <xs:complexType name="linktext.class" mixed="true">
458 <xs:sequence minOccurs="0" maxOccurs="unbounded">
459 <xs:group ref="words.cnt"/>
460 </xs:sequence>
461 <xs:attribute name="outputclass" type="xs:string"/>
462 <xs:attributeGroup ref="univ-atts"/>
463 <xs:attributeGroup ref="global-atts" />
464 </xs:complexType>
465
466 <xs:element name="searchtitle">
467 <xs:annotation>
468 <xs:documentation>
469 When your DITA topic is transformed to XHTML, the &lt;<keyword>searchtitle</keyword>&gt;
470 element is used to create a title element at the top of the resulting HTML
471 file. This title is normally used in search result summaries by some search
472 engines, such as that in Eclipse (<ph><xref format="html" href="http://eclipse.org"
473 scope="external">http://eclipse.org</xref></ph>); if not set, the XHTML's
474 title element defaults to the source topic's title content (which may not
475 be as well optimized for search summaries)
476 </xs:documentation>
477 </xs:annotation>
478 <xs:complexType mixed="true">
479 <xs:complexContent>
480 <xs:extension base="searchtitle.class">
481 <xs:attribute ref="class" default="- map/searchtitle " />
482 </xs:extension>
483 </xs:complexContent>
484 </xs:complexType>
485 </xs:element>
486 <xs:complexType name="searchtitle.class" mixed="true">
487 <xs:sequence minOccurs="0" maxOccurs="unbounded">
488 <xs:group ref="words.cnt"/>
489 </xs:sequence>
490 <xs:attribute name="outputclass" type="xs:string"/>
491 <xs:attributeGroup ref="univ-atts"/>
492 <xs:attributeGroup ref="global-atts" />
493 </xs:complexType >
494
495 <xs:element name="shortdesc">
496 <xs:annotation>
497 <xs:documentation>
498 The short description (&lt;<keyword>shortdesc</keyword>&gt;) element
499 occurs between the topic title and the topic body, as the initial paragraph-like
500 content of a topic. The short description, which represents the purpose or
501 theme of the topic, is also intended to be used as a link preview and for
502 searching.
503 </xs:documentation>
504 </xs:annotation>
505 <xs:complexType mixed="true">
506 <xs:complexContent>
507 <xs:extension base="shortdesc.class">
508 <xs:attribute ref="class" default="- map/shortdesc " />
509 </xs:extension>
510 </xs:complexContent>
511 </xs:complexType>
512 </xs:element>
513
514 <!--<xs:complexType name="shortdesc.class" mixed="true">
515 <xs:sequence minOccurs="0" maxOccurs="unbounded">
516 <xs:group ref="words.cnt"/>
517 </xs:sequence>
518 <xs:attributeGroup ref="global-atts" />
519 </xs:complexType >-->
520
521</xs:schema>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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