Skip to content

Commit 67db0ef

Browse files
committed
Offsets within composite types #11
Created new attributeGroup "positionAttributes" and applied it to all encoding types and fields.
1 parent 29458c9 commit 67db0ef

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

v1-0-RC4/resources/SimpleBinary1-0.xsd

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,6 @@
171171
<xs:attribute name="maxValue" type="xs:string" use="optional" />
172172
<xs:attribute name="length" type="xs:nonNegativeInteger"
173173
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>
181174
<xs:attribute name="primitiveType" use="required">
182175
<xs:simpleType>
183176
<xs:restriction base="xs:token">
@@ -197,6 +190,7 @@
197190
</xs:attribute>
198191
<xs:attribute name="characterEncoding" type="xs:string"
199192
use="optional" />
193+
<xs:attributeGroup ref="sbe:positionAttributes" />
200194
<xs:attributeGroup ref="sbe:presenceAttributes" />
201195
<xs:attributeGroup ref="sbe:semanticAttributes" />
202196
<xs:attributeGroup ref="sbe:versionAttributes" />
@@ -217,6 +211,7 @@
217211
<xs:element name="composite" type="sbe:compositeDataType" />
218212
</xs:choice>
219213
<xs:attribute name="name" type="sbe:symbolicName_t" use="required" />
214+
<xs:attributeGroup ref="sbe:positionAttributes" />
220215
<xs:attributeGroup ref="sbe:semanticAttributes" />
221216
<xs:attributeGroup ref="sbe:versionAttributes" />
222217
</xs:complexType>
@@ -234,6 +229,7 @@
234229
<xs:attribute name="name" type="sbe:symbolicName_t" use="required" />
235230
<xs:attribute name="encodingType" type="sbe:symbolicName_t"
236231
use="required" />
232+
<xs:attributeGroup ref="sbe:positionAttributes" />
237233
<xs:attributeGroup ref="sbe:semanticAttributes" />
238234
<xs:attributeGroup ref="sbe:versionAttributes" />
239235
</xs:complexType>
@@ -282,6 +278,7 @@
282278
<xs:attribute name="name" type="sbe:symbolicName_t"
283279
use="required" />
284280
<xs:attribute name="description" type="xs:string" use="optional" />
281+
<xs:attributeGroup ref="sbe:positionAttributes" />
285282
<xs:attributeGroup ref="sbe:versionAttributes" />
286283
</xs:extension>
287284
</xs:simpleContent>
@@ -302,13 +299,6 @@
302299
</xs:documentation>
303300
</xs:annotation>
304301
</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>
312302
<!-- start of time period - default is UNIX epoch -->
313303
<xs:attribute name="epoch" type="xs:string" default="unix" />
314304
<xs:attribute name="timeUnit" type="xs:string" default="nanosecond">
@@ -317,6 +307,7 @@
317307
</xs:documentation>
318308
</xs:annotation>
319309
</xs:attribute>
310+
<xs:attributeGroup ref="sbe:positionAttributes" />
320311
<xs:attributeGroup ref="sbe:presenceAttributes" />
321312
<xs:attributeGroup ref="sbe:semanticAttributes" />
322313
<xs:attributeGroup ref="sbe:versionAttributes" />
@@ -359,6 +350,16 @@
359350
</xs:attribute>
360351
</xs:attributeGroup>
361352

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+
362363
<xs:attributeGroup name="presenceAttributes">
363364
<xs:attribute name="presence" default="required">
364365
<xs:simpleType>

0 commit comments

Comments
 (0)