|
171 | 171 | <xs:attribute name="maxValue" type="xs:string" use="optional" /> |
172 | 172 | <xs:attribute name="length" type="xs:nonNegativeInteger" |
173 | 173 | default="1" /> |
174 | | - <xs:attribute name="offset" type="xs:unsignedInt" use="optional"> |
175 | | - <xs:annotation> |
176 | | - <xs:documentation>Offset from start of a composite type as a |
177 | | - zero-based index. |
178 | | - </xs:documentation> |
179 | | - </xs:annotation> |
180 | | - </xs:attribute> |
181 | 174 | <xs:attribute name="primitiveType" use="required"> |
182 | 175 | <xs:simpleType> |
183 | 176 | <xs:restriction base="xs:token"> |
|
197 | 190 | </xs:attribute> |
198 | 191 | <xs:attribute name="characterEncoding" type="xs:string" |
199 | 192 | use="optional" /> |
| 193 | + <xs:attributeGroup ref="sbe:positionAttributes" /> |
200 | 194 | <xs:attributeGroup ref="sbe:presenceAttributes" /> |
201 | 195 | <xs:attributeGroup ref="sbe:semanticAttributes" /> |
202 | 196 | <xs:attributeGroup ref="sbe:versionAttributes" /> |
|
217 | 211 | <xs:element name="composite" type="sbe:compositeDataType" /> |
218 | 212 | </xs:choice> |
219 | 213 | <xs:attribute name="name" type="sbe:symbolicName_t" use="required" /> |
| 214 | + <xs:attributeGroup ref="sbe:positionAttributes" /> |
220 | 215 | <xs:attributeGroup ref="sbe:semanticAttributes" /> |
221 | 216 | <xs:attributeGroup ref="sbe:versionAttributes" /> |
222 | 217 | </xs:complexType> |
|
234 | 229 | <xs:attribute name="name" type="sbe:symbolicName_t" use="required" /> |
235 | 230 | <xs:attribute name="encodingType" type="sbe:symbolicName_t" |
236 | 231 | use="required" /> |
| 232 | + <xs:attributeGroup ref="sbe:positionAttributes" /> |
237 | 233 | <xs:attributeGroup ref="sbe:semanticAttributes" /> |
238 | 234 | <xs:attributeGroup ref="sbe:versionAttributes" /> |
239 | 235 | </xs:complexType> |
|
282 | 278 | <xs:attribute name="name" type="sbe:symbolicName_t" |
283 | 279 | use="required" /> |
284 | 280 | <xs:attribute name="description" type="xs:string" use="optional" /> |
| 281 | + <xs:attributeGroup ref="sbe:positionAttributes" /> |
285 | 282 | <xs:attributeGroup ref="sbe:versionAttributes" /> |
286 | 283 | </xs:extension> |
287 | 284 | </xs:simpleContent> |
|
302 | 299 | </xs:documentation> |
303 | 300 | </xs:annotation> |
304 | 301 | </xs:attribute> |
305 | | - <xs:attribute name="offset" type="xs:unsignedInt" use="optional"> |
306 | | - <xs:annotation> |
307 | | - <xs:documentation>Offset from start of a block as a zero-based |
308 | | - index. |
309 | | - </xs:documentation> |
310 | | - </xs:annotation> |
311 | | - </xs:attribute> |
312 | 302 | <!-- start of time period - default is UNIX epoch --> |
313 | 303 | <xs:attribute name="epoch" type="xs:string" default="unix" /> |
314 | 304 | <xs:attribute name="timeUnit" type="xs:string" default="nanosecond"> |
|
317 | 307 | </xs:documentation> |
318 | 308 | </xs:annotation> |
319 | 309 | </xs:attribute> |
| 310 | + <xs:attributeGroup ref="sbe:positionAttributes" /> |
320 | 311 | <xs:attributeGroup ref="sbe:presenceAttributes" /> |
321 | 312 | <xs:attributeGroup ref="sbe:semanticAttributes" /> |
322 | 313 | <xs:attributeGroup ref="sbe:versionAttributes" /> |
|
359 | 350 | </xs:attribute> |
360 | 351 | </xs:attributeGroup> |
361 | 352 |
|
| 353 | + <xs:attributeGroup name="positionAttributes"> |
| 354 | + <xs:attribute name="offset" type="xs:unsignedInt" use="optional"> |
| 355 | + <xs:annotation> |
| 356 | + <xs:documentation>Offset from start of a composite type or block |
| 357 | + as a zero-based index. |
| 358 | + </xs:documentation> |
| 359 | + </xs:annotation> |
| 360 | + </xs:attribute> |
| 361 | + </xs:attributeGroup> |
| 362 | + |
362 | 363 | <xs:attributeGroup name="presenceAttributes"> |
363 | 364 | <xs:attribute name="presence" default="required"> |
364 | 365 | <xs:simpleType> |
|
0 commit comments