1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 | | (C) Copyright IBM Corporation 2001, 2004. All Rights Reserved.
|
---|
4 | | This file is part of the DITA package on IBM's developerWorks site.
|
---|
5 | | See license.txt for disclaimers and permissions.
|
---|
6 | |
|
---|
7 | | The Darwin Information Typing Architecture (DITA) was orginated by
|
---|
8 | | IBM's XML Workgroup and ID Workbench tools team.
|
---|
9 | |
|
---|
10 | | File: ditabase.xsd
|
---|
11 | |
|
---|
12 | | Release history (vrm):
|
---|
13 | | 1.0.0 Release 1.2 - Initial XML Schema release on IBM's developerWorks, June 2003
|
---|
14 | | 1.1.3 Release 1.3 March 2004: bug fixes and map updates
|
---|
15 | *-->
|
---|
16 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
---|
17 | <!-- Add the domains to the base topic XML Schema -->
|
---|
18 | <!-- ================ TOPIC DOMAINS ===================== -->
|
---|
19 | <xs:include schemaLocation="ui-domain.mod"/>
|
---|
20 | <xs:include schemaLocation="software-domain.mod"/>
|
---|
21 | <xs:include schemaLocation="highlight-domain.mod"/>
|
---|
22 | <xs:include schemaLocation="programming-domain.mod"/>
|
---|
23 | <xs:include schemaLocation="utilities-domain.mod"/>
|
---|
24 |
|
---|
25 |
|
---|
26 |
|
---|
27 |
|
---|
28 |
|
---|
29 | <!-- ================ INFO TYPES ===================== -->
|
---|
30 | <xs:include schemaLocation="reference.grp" />
|
---|
31 | <xs:include schemaLocation="task.grp" />
|
---|
32 | <xs:include schemaLocation="concept.grp" />
|
---|
33 | <xs:include schemaLocation="topic_domains.mod"/>
|
---|
34 |
|
---|
35 |
|
---|
36 | <xs:redefine schemaLocation="topic.mod" >
|
---|
37 | <xs:complexType name="topic.class">
|
---|
38 | <xs:complexContent>
|
---|
39 | <xs:extension base="topic.class">
|
---|
40 | <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d)"/>
|
---|
41 | </xs:extension>
|
---|
42 | </xs:complexContent>
|
---|
43 | </xs:complexType>
|
---|
44 | </xs:redefine>
|
---|
45 | <xs:redefine schemaLocation="concept.mod" >
|
---|
46 | <xs:complexType name="concept.class">
|
---|
47 | <xs:complexContent>
|
---|
48 | <xs:extension base="concept.class">
|
---|
49 | <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d)"/>
|
---|
50 | </xs:extension>
|
---|
51 | </xs:complexContent>
|
---|
52 | </xs:complexType>
|
---|
53 | </xs:redefine>
|
---|
54 | <xs:redefine schemaLocation="task.mod" >
|
---|
55 | <xs:complexType name="task.class">
|
---|
56 | <xs:complexContent>
|
---|
57 | <xs:extension base="task.class">
|
---|
58 | <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d)"/>
|
---|
59 | </xs:extension>
|
---|
60 | </xs:complexContent>
|
---|
61 | </xs:complexType>
|
---|
62 | </xs:redefine>
|
---|
63 | <xs:redefine schemaLocation="reference.mod" >
|
---|
64 | <xs:complexType name="reference.class">
|
---|
65 | <xs:complexContent>
|
---|
66 | <xs:extension base="reference.class">
|
---|
67 | <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d)"/>
|
---|
68 | </xs:extension>
|
---|
69 | </xs:complexContent>
|
---|
70 | </xs:complexType>
|
---|
71 | </xs:redefine>
|
---|
72 |
|
---|
73 |
|
---|
74 | <xs:group name="ditabase-info-types">
|
---|
75 | <xs:choice>
|
---|
76 | <xs:group ref="topic"/>
|
---|
77 | <xs:group ref="task"/>
|
---|
78 | <xs:group ref="concept"/>
|
---|
79 | <xs:group ref="reference"/>
|
---|
80 | </xs:choice>
|
---|
81 | </xs:group>
|
---|
82 |
|
---|
83 | <xs:group name="info-types">
|
---|
84 | <xs:choice>
|
---|
85 | <xs:group ref="ditabase-info-types"/>
|
---|
86 | </xs:choice>
|
---|
87 | </xs:group>
|
---|
88 |
|
---|
89 | <xs:annotation>
|
---|
90 | <xs:documentation>This element allows you to combine several articles into a single
|
---|
91 | XML file. You can mix the article types after the DITA element. For example,
|
---|
92 | you can start with an introductory topic, continue with concept and task information,
|
---|
93 | and conclude with reference information. You can create several peer articles
|
---|
94 | at the main level, and create heierarchies under each main article.</xs:documentation>
|
---|
95 | </xs:annotation>
|
---|
96 | <xs:element name="dita" type="dita.class"/>
|
---|
97 | <xs:complexType name="dita.class">
|
---|
98 | <xs:choice maxOccurs="unbounded">
|
---|
99 | <xs:group ref="info-types"/>
|
---|
100 | </xs:choice>
|
---|
101 | <xs:attributeGroup ref="global-atts"/>
|
---|
102 | </xs:complexType>
|
---|
103 |
|
---|
104 | </xs:schema>
|
---|