|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 | (C) Copyright IBM Corporation 2005 - 2006. All Rights Reserved. |
|
4 *--> |
|
5 <!-- ============ Hooks for domain extension ============ --> |
|
6 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"> |
|
7 <xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="../../../schema/ditaarch.xsd"/> |
|
8 <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="../../../schema/xml.xsd"/> |
|
9 |
|
10 <!-- ============ Hooks for shell DTD ============ --> |
|
11 <xs:group name="apiOperation-types-default"> |
|
12 <xs:choice> |
|
13 <xs:element ref="apiClassifier"/> |
|
14 <xs:element ref="apiOperation"/> |
|
15 <xs:element ref="apiValue"/> |
|
16 </xs:choice> |
|
17 </xs:group> |
|
18 <xs:group name="apiOperation-info-types"> |
|
19 <xs:sequence> |
|
20 <xs:group ref="apiOperation-types-default"/> |
|
21 </xs:sequence> |
|
22 </xs:group> |
|
23 <!-- ============ Element definitions ============ --> |
|
24 <xs:element name="apiOperation" type="apiOperation.class" /> |
|
25 <xs:complexType name="apiOperation.class"> |
|
26 <xs:sequence> |
|
27 <xs:group ref="apiName"/> |
|
28 <xs:choice> |
|
29 <xs:group ref="shortdesc" /> |
|
30 <xs:group ref="abstract" /> |
|
31 </xs:choice> |
|
32 <xs:group minOccurs="0" ref="prolog"/> |
|
33 <xs:group ref="apiOperationDetail"/> |
|
34 <xs:group minOccurs="0" ref="related-links"/> |
|
35 <xs:group minOccurs="0" maxOccurs="unbounded" ref="apiOperation-info-types"/> |
|
36 </xs:sequence> |
|
37 <xs:attributeGroup ref="apiOperation.attlist"/> |
|
38 </xs:complexType> |
|
39 |
|
40 <xs:attributeGroup name="apiOperation.attlist"> |
|
41 <xs:attribute name="id" use="required" type="xs:ID"/> |
|
42 <xs:attribute name="conref"/> |
|
43 <xs:attribute name="outputclass"/> |
|
44 <xs:attribute ref="ditaarch:DITAArchVersion"/> |
|
45 <xs:attributeGroup ref="select-atts"/> |
|
46 <xs:attributeGroup ref="localization-atts"/> |
|
47 <xs:attributeGroup ref="global-atts"/> |
|
48 <xs:attribute name="class" default="- topic/topic reference/reference apiRef/apiRef apiOperation/apiOperation "/> |
|
49 </xs:attributeGroup> |
|
50 <xs:element name="apiOperationDetail"> |
|
51 <xs:complexType> |
|
52 <xs:sequence> |
|
53 <xs:choice> |
|
54 <xs:group minOccurs="0" maxOccurs="unbounded" ref="apiSyntax"/> |
|
55 <xs:group minOccurs="0" maxOccurs="unbounded" ref="apiConstructorDef"/> |
|
56 <xs:group minOccurs="0" maxOccurs="unbounded" ref="apiOperationDef"/> |
|
57 </xs:choice> |
|
58 <xs:group minOccurs="0" maxOccurs="unbounded" ref="apiDesc"/> |
|
59 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
60 <xs:group ref="example"/> |
|
61 <xs:group ref="section"/> |
|
62 <xs:group ref="apiImpl"/> |
|
63 </xs:choice> |
|
64 </xs:sequence> |
|
65 <xs:attributeGroup ref="apiOperationDetail.attlist"/> |
|
66 </xs:complexType> |
|
67 </xs:element> |
|
68 <xs:attributeGroup name="apiOperationDetail.attlist"> |
|
69 <xs:attributeGroup ref="id-atts"/> |
|
70 <xs:attribute name="outputclass"/> |
|
71 <xs:attributeGroup ref="localization-atts"/> |
|
72 <xs:attributeGroup ref="global-atts"/> |
|
73 <xs:attribute name="class" default="- topic/body reference/refbody apiRef/apiDetail apiOperation/apiOperationDetail "/> |
|
74 </xs:attributeGroup> |
|
75 <xs:element name="apiOperationDef"> |
|
76 <xs:complexType> |
|
77 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
78 <xs:group ref="apiReturn"/> |
|
79 <xs:group ref="apiParam"/> |
|
80 <xs:group ref="apiEvent"/> |
|
81 <xs:group ref="apiOperationClassifier"/> |
|
82 <xs:group ref="apiDefinition.cnt"/> |
|
83 <xs:group ref="apiOperationDefItem"/> |
|
84 <xs:group ref="apiItemName"/> |
|
85 </xs:choice> |
|
86 <xs:attributeGroup ref="apiOperationDef.attlist"/> |
|
87 </xs:complexType> |
|
88 </xs:element> |
|
89 <xs:attributeGroup name="apiOperationDef.attlist"> |
|
90 <xs:attribute name="spectitle"/> |
|
91 <xs:attributeGroup ref="univ-atts"/> |
|
92 <xs:attribute name="outputclass"/> |
|
93 <xs:attributeGroup ref="global-atts"/> |
|
94 <xs:attribute name="class" default="- topic/section reference/section apiRef/apiDef apiOperation/apiOperationDef "/> |
|
95 </xs:attributeGroup> |
|
96 <xs:element name="apiConstructorDef"> |
|
97 <xs:complexType> |
|
98 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
99 <xs:group ref="apiParam"/> |
|
100 <xs:group ref="apiEvent"/> |
|
101 <xs:group ref="apiOperationClassifier"/> |
|
102 <xs:group ref="apiDefinition.cnt"/> |
|
103 <xs:group ref="apiOperationDefItem"/> |
|
104 <xs:group ref="apiItemName"/> |
|
105 </xs:choice> |
|
106 <xs:attributeGroup ref="apiConstructorDef.attlist"/> |
|
107 </xs:complexType> |
|
108 </xs:element> |
|
109 <xs:attributeGroup name="apiConstructorDef.attlist"> |
|
110 <xs:attribute name="spectitle"/> |
|
111 <xs:attributeGroup ref="univ-atts"/> |
|
112 <xs:attribute name="outputclass"/> |
|
113 <xs:attributeGroup ref="global-atts"/> |
|
114 <xs:attribute name="class" default="- topic/section reference/section apiRef/apiDef apiOperation/apiConstructorDef "/> |
|
115 </xs:attributeGroup> |
|
116 <xs:element name="apiReturn"> |
|
117 <xs:complexType> |
|
118 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
119 <xs:group ref="apiItemName"/> |
|
120 <xs:group ref="apiOperationClassifier"/> |
|
121 <xs:group ref="apiDefinition.cnt"/> |
|
122 <xs:group ref="apiOperationDefItem"/> |
|
123 </xs:choice> |
|
124 <xs:attributeGroup ref="apiReturn.attlist"/> |
|
125 </xs:complexType> |
|
126 </xs:element> |
|
127 <xs:attributeGroup name="apiReturn.attlist"> |
|
128 <xs:attribute name="keyref"/> |
|
129 <xs:attributeGroup ref="univ-atts"/> |
|
130 <xs:attribute name="outputclass"/> |
|
131 <xs:attributeGroup ref="global-atts"/> |
|
132 <xs:attribute name="class" default="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiReturn "/> |
|
133 </xs:attributeGroup> |
|
134 <xs:element name="apiParam"> |
|
135 <xs:complexType> |
|
136 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
137 <xs:group ref="apiItemName"/> |
|
138 <xs:group ref="apiOperationClassifier"/> |
|
139 <xs:group ref="apiDefinition.cnt"/> |
|
140 <xs:group ref="apiOperationDefItem"/> |
|
141 </xs:choice> |
|
142 <xs:attributeGroup ref="apiParam.attlist"/> |
|
143 </xs:complexType> |
|
144 </xs:element> |
|
145 <xs:attributeGroup name="apiParam.attlist"> |
|
146 <xs:attribute name="keyref"/> |
|
147 <xs:attributeGroup ref="univ-atts"/> |
|
148 <xs:attribute name="outputclass"/> |
|
149 <xs:attributeGroup ref="global-atts"/> |
|
150 <xs:attribute name="class" default="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiParam "/> |
|
151 </xs:attributeGroup> |
|
152 <xs:element name="apiEvent"> |
|
153 <xs:complexType> |
|
154 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
155 <xs:group ref="apiItemName"/> |
|
156 <xs:group ref="apiOperationClassifier"/> |
|
157 <xs:group ref="apiDefinition.cnt"/> |
|
158 <xs:group ref="apiOperationDefItem"/> |
|
159 </xs:choice> |
|
160 <xs:attributeGroup ref="apiEvent.attlist"/> |
|
161 </xs:complexType> |
|
162 </xs:element> |
|
163 <xs:attributeGroup name="apiEvent.attlist"> |
|
164 <xs:attribute name="keyref"/> |
|
165 <xs:attributeGroup ref="univ-atts"/> |
|
166 <xs:attribute name="outputclass"/> |
|
167 <xs:attributeGroup ref="global-atts"/> |
|
168 <xs:attribute name="class" default="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiEvent "/> |
|
169 </xs:attributeGroup> |
|
170 <xs:element name="apiOperationDefItem"> |
|
171 <xs:complexType> |
|
172 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
173 <xs:group ref="apiItemName"/> |
|
174 <xs:group ref="apiOperationClassifier"/> |
|
175 <xs:group ref="apiDefinition.cnt"/> |
|
176 <xs:group ref="apiOperationDefItem"/> |
|
177 </xs:choice> |
|
178 <xs:attributeGroup ref="apiOperationDefItem.attlist"/> |
|
179 </xs:complexType> |
|
180 </xs:element> |
|
181 <xs:attributeGroup name="apiOperationDefItem.attlist"> |
|
182 <xs:attribute name="keyref"/> |
|
183 <xs:attributeGroup ref="univ-atts"/> |
|
184 <xs:attribute name="outputclass"/> |
|
185 <xs:attributeGroup ref="global-atts"/> |
|
186 <xs:attribute name="class" default="- topic/ph reference/ph apiRef/apiDefItem apiOperation/apiOperationDefItem "/> |
|
187 </xs:attributeGroup> |
|
188 <xs:element name="apiOperationClassifier"> |
|
189 <xs:complexType mixed="true"> |
|
190 <xs:attributeGroup ref="apiOperationClassifier.attlist"/> |
|
191 </xs:complexType> |
|
192 </xs:element> |
|
193 <xs:attributeGroup name="apiOperationClassifier.attlist"> |
|
194 <xs:attribute name="href"/> |
|
195 <xs:attribute name="keyref"/> |
|
196 <xs:attribute name="type"/> |
|
197 <xs:attributeGroup ref="univ-atts"/> |
|
198 <xs:attribute name="format"/> |
|
199 <xs:attribute name="scope"> |
|
200 <xs:simpleType> |
|
201 <xs:restriction base="xs:token"> |
|
202 <xs:enumeration value="local"/> |
|
203 <xs:enumeration value="peer"/> |
|
204 <xs:enumeration value="external"/> |
|
205 <xs:enumeration value="-dita-use-conref-target"/> |
|
206 </xs:restriction> |
|
207 </xs:simpleType> |
|
208 </xs:attribute> |
|
209 <xs:attribute name="outputclass"/> |
|
210 <xs:attributeGroup ref="global-atts"/> |
|
211 <xs:attribute name="class" default="- topic/xref reference/xref apiRef/apiRelation apiOperation/apiOperationClassifier "/> |
|
212 </xs:attributeGroup> |
|
213 <!-- ============ Class ancestry ============ --> |
|
214 </xs:schema> |