1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 | This file is part of DocBook V5.0
|
---|
4 |
|
---|
5 | Copyright 1992-2008 HaL Computer Systems, Inc.,
|
---|
6 | O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
|
---|
7 | Corporation, Norman Walsh, Sun Microsystems, Inc., and the
|
---|
8 | Organization for the Advancement of Structured Information
|
---|
9 | Standards (OASIS).
|
---|
10 |
|
---|
11 | Release: $Id: qandaset.rnc 8931 2010-10-20 13:29:20Z nwalsh $
|
---|
12 |
|
---|
13 | Permission to use, copy, modify and distribute the DocBook schema
|
---|
14 | and its accompanying documentation for any purpose and without fee
|
---|
15 | is hereby granted in perpetuity, provided that the above copyright
|
---|
16 | notice and this paragraph appear in all copies. The copyright
|
---|
17 | holders make no representation about the suitability of the schema
|
---|
18 | for any purpose. It is provided "as is" without expressed or implied
|
---|
19 | warranty.
|
---|
20 |
|
---|
21 | If you modify the DocBook schema in any way, label your schema as a
|
---|
22 | variant of DocBook. See the reference documentation
|
---|
23 | (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
|
---|
24 | for more information.
|
---|
25 |
|
---|
26 | Please direct all questions, bug reports, or suggestions for changes
|
---|
27 | to the docbook@lists.oasis-open.org mailing list. For more
|
---|
28 | information, see http://www.oasis-open.org/docbook/.
|
---|
29 |
|
---|
30 | ======================================================================
|
---|
31 | -->
|
---|
32 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://docbook.org/ns/docbook" xmlns:dbs="http://docbook.org/ns/docbook-slides" xmlns:db="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
---|
33 | <xs:import namespace="http://docbook.org/ns/docbook-slides" schemaLocation="slides.xsd"/>
|
---|
34 | <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
|
---|
35 | <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
|
---|
36 | <!-- ====================================================================== -->
|
---|
37 | <xs:attributeGroup name="db.qandaset.role.attribute">
|
---|
38 | <xs:attribute name="role" use="required"/>
|
---|
39 | </xs:attributeGroup>
|
---|
40 | <xs:simpleType name="db.qandaset.defaultlabel.enumeration">
|
---|
41 | <xs:restriction base="xs:token">
|
---|
42 | <xs:enumeration value="none">
|
---|
43 | <xs:annotation>
|
---|
44 | <xs:documentation>No labels</xs:documentation>
|
---|
45 | </xs:annotation>
|
---|
46 | </xs:enumeration>
|
---|
47 | <xs:enumeration value="number">
|
---|
48 | <xs:annotation>
|
---|
49 | <xs:documentation>Numeric labels</xs:documentation>
|
---|
50 | </xs:annotation>
|
---|
51 | </xs:enumeration>
|
---|
52 | <xs:enumeration value="qanda">
|
---|
53 | <xs:annotation>
|
---|
54 | <xs:documentation>"Q:" and "A:" labels</xs:documentation>
|
---|
55 | </xs:annotation>
|
---|
56 | </xs:enumeration>
|
---|
57 | </xs:restriction>
|
---|
58 | </xs:simpleType>
|
---|
59 | <xs:attributeGroup name="db.qandaset.defaultlabel.attribute">
|
---|
60 | <xs:attribute name="defaultlabel" use="required" type="db:db.qandaset.defaultlabel.enumeration"/>
|
---|
61 | </xs:attributeGroup>
|
---|
62 | <xs:attributeGroup name="db.qandaset.attlist">
|
---|
63 | <xs:attribute name="role"/>
|
---|
64 | <xs:attributeGroup ref="dbs:db.common.attributes"/>
|
---|
65 | <xs:attributeGroup ref="db:db.common.linking.attributes"/>
|
---|
66 | <xs:attribute name="defaultlabel" type="db:db.qandaset.defaultlabel.enumeration"/>
|
---|
67 | </xs:attributeGroup>
|
---|
68 | <xs:group name="db.qandaset.info">
|
---|
69 | <xs:sequence>
|
---|
70 | <xs:group ref="db:db._info.title.only"/>
|
---|
71 | </xs:sequence>
|
---|
72 | </xs:group>
|
---|
73 | <xs:element name="qandaset">
|
---|
74 | <xs:complexType>
|
---|
75 | <xs:sequence>
|
---|
76 | <xs:group ref="db:db.qandaset.info"/>
|
---|
77 | <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.all.blocks"/>
|
---|
78 | <xs:choice>
|
---|
79 | <xs:element maxOccurs="unbounded" ref="db:qandadiv"/>
|
---|
80 | <xs:element maxOccurs="unbounded" ref="db:qandaentry"/>
|
---|
81 | </xs:choice>
|
---|
82 | </xs:sequence>
|
---|
83 | <xs:attributeGroup ref="db:db.qandaset.attlist"/>
|
---|
84 | </xs:complexType>
|
---|
85 | </xs:element>
|
---|
86 | <!-- ====================================================================== -->
|
---|
87 | <xs:attributeGroup name="db.qandadiv.role.attribute">
|
---|
88 | <xs:attribute name="role" use="required"/>
|
---|
89 | </xs:attributeGroup>
|
---|
90 | <xs:attributeGroup name="db.qandadiv.attlist">
|
---|
91 | <xs:attribute name="role"/>
|
---|
92 | <xs:attributeGroup ref="dbs:db.common.attributes"/>
|
---|
93 | <xs:attributeGroup ref="db:db.common.linking.attributes"/>
|
---|
94 | </xs:attributeGroup>
|
---|
95 | <xs:group name="db.qandadiv.info">
|
---|
96 | <xs:sequence>
|
---|
97 | <xs:group ref="db:db._info.title.only"/>
|
---|
98 | </xs:sequence>
|
---|
99 | </xs:group>
|
---|
100 | <xs:element name="qandadiv">
|
---|
101 | <xs:complexType>
|
---|
102 | <xs:sequence>
|
---|
103 | <xs:group ref="db:db.qandadiv.info"/>
|
---|
104 | <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.all.blocks"/>
|
---|
105 | <xs:choice>
|
---|
106 | <xs:element maxOccurs="unbounded" ref="db:qandadiv"/>
|
---|
107 | <xs:element maxOccurs="unbounded" ref="db:qandaentry"/>
|
---|
108 | </xs:choice>
|
---|
109 | </xs:sequence>
|
---|
110 | <xs:attributeGroup ref="db:db.qandadiv.attlist"/>
|
---|
111 | </xs:complexType>
|
---|
112 | </xs:element>
|
---|
113 | <!-- ====================================================================== -->
|
---|
114 | <xs:attributeGroup name="db.qandaentry.role.attribute">
|
---|
115 | <xs:attribute name="role" use="required"/>
|
---|
116 | </xs:attributeGroup>
|
---|
117 | <xs:attributeGroup name="db.qandaentry.attlist">
|
---|
118 | <xs:attribute name="role"/>
|
---|
119 | <xs:attributeGroup ref="dbs:db.common.attributes"/>
|
---|
120 | <xs:attributeGroup ref="db:db.common.linking.attributes"/>
|
---|
121 | </xs:attributeGroup>
|
---|
122 | <xs:group name="db.qandaentry.info">
|
---|
123 | <xs:sequence>
|
---|
124 | <xs:group ref="db:db._info.title.only"/>
|
---|
125 | </xs:sequence>
|
---|
126 | </xs:group>
|
---|
127 | <xs:element name="qandaentry">
|
---|
128 | <xs:complexType>
|
---|
129 | <xs:sequence>
|
---|
130 | <xs:group ref="db:db.qandaentry.info"/>
|
---|
131 | <xs:element ref="db:question"/>
|
---|
132 | <xs:element minOccurs="0" maxOccurs="unbounded" ref="db:answer"/>
|
---|
133 | </xs:sequence>
|
---|
134 | <xs:attributeGroup ref="db:db.qandaentry.attlist"/>
|
---|
135 | </xs:complexType>
|
---|
136 | </xs:element>
|
---|
137 | <!-- ====================================================================== -->
|
---|
138 | <xs:attributeGroup name="db.question.role.attribute">
|
---|
139 | <xs:attribute name="role" use="required"/>
|
---|
140 | </xs:attributeGroup>
|
---|
141 | <xs:attributeGroup name="db.question.attlist">
|
---|
142 | <xs:attribute name="role"/>
|
---|
143 | <xs:attributeGroup ref="dbs:db.common.attributes"/>
|
---|
144 | <xs:attributeGroup ref="db:db.common.linking.attributes"/>
|
---|
145 | </xs:attributeGroup>
|
---|
146 | <xs:element name="question">
|
---|
147 | <xs:complexType>
|
---|
148 | <xs:sequence>
|
---|
149 | <xs:element minOccurs="0" ref="db:label"/>
|
---|
150 | <xs:group maxOccurs="unbounded" ref="db:db.all.blocks"/>
|
---|
151 | </xs:sequence>
|
---|
152 | <xs:attributeGroup ref="db:db.question.attlist"/>
|
---|
153 | </xs:complexType>
|
---|
154 | </xs:element>
|
---|
155 | <!-- ====================================================================== -->
|
---|
156 | <xs:attributeGroup name="db.answer.role.attribute">
|
---|
157 | <xs:attribute name="role" use="required"/>
|
---|
158 | </xs:attributeGroup>
|
---|
159 | <xs:attributeGroup name="db.answer.attlist">
|
---|
160 | <xs:attribute name="role"/>
|
---|
161 | <xs:attributeGroup ref="dbs:db.common.attributes"/>
|
---|
162 | <xs:attributeGroup ref="db:db.common.linking.attributes"/>
|
---|
163 | </xs:attributeGroup>
|
---|
164 | <xs:element name="answer">
|
---|
165 | <xs:complexType>
|
---|
166 | <xs:sequence>
|
---|
167 | <xs:element minOccurs="0" ref="db:label"/>
|
---|
168 | <xs:group maxOccurs="unbounded" ref="db:db.all.blocks"/>
|
---|
169 | </xs:sequence>
|
---|
170 | <xs:attributeGroup ref="db:db.answer.attlist"/>
|
---|
171 | </xs:complexType>
|
---|
172 | </xs:element>
|
---|
173 | <!-- ====================================================================== -->
|
---|
174 | <xs:attributeGroup name="db.label.role.attribute">
|
---|
175 | <xs:attribute name="role" use="required"/>
|
---|
176 | </xs:attributeGroup>
|
---|
177 | <xs:attributeGroup name="db.label.attlist">
|
---|
178 | <xs:attribute name="role"/>
|
---|
179 | <xs:attributeGroup ref="dbs:db.common.attributes"/>
|
---|
180 | <xs:attributeGroup ref="db:db.common.linking.attributes"/>
|
---|
181 | </xs:attributeGroup>
|
---|
182 | <xs:element name="label">
|
---|
183 | <xs:complexType mixed="true">
|
---|
184 | <xs:group ref="db:db._text"/>
|
---|
185 | <xs:attributeGroup ref="db:db.label.attlist"/>
|
---|
186 | </xs:complexType>
|
---|
187 | </xs:element>
|
---|
188 | </xs:schema>
|
---|