@@ -5,7 +5,8 @@ XML schema for SBE message schemas
55---------
66See [ sbe.xsd] ( ../resources/sbe.xsd ) for the normative XML Schema Definition (XSD) for SBE.
77
8- The SBE schema is defined with W3C XML Schema Definition Language (XSD) version 1.1.
8+ The SBE schema is defined with W3C XML Schema Definition Language (XSD) version 1.0. (XSD version 1.1 was standardized.
9+ However, since it is not supported by all XML processors, the SBE XSD is constrained to features of version 1.0.)
910
1011
1112XML namespace
@@ -82,8 +83,17 @@ Data encodings
8283
8384### Encoding sets
8485
85- The ` <types> ` element contains one or more sets of data encodings used
86- for messages within the schema.
86+ A ` <types> ` element contains a set of data encodings used by messages within a schema. A message schema may have multiple
87+ instances of ` <types> ` , if desired, to organize them by categories. Each ` <types> ` element may have an associated ` package ` name.
88+
89+ ** ` <types> ` element attribute**
90+
91+ | Schema attribute | Description | XML type | Usage | Valid values |
92+ | ------------------| --------------------------------------------------------------------------------------------------| --------------------| ------------------------| ------------------------------------------------------------------------------|
93+ | package | Overrides package of messageSchema | string | optional | Should be unique between counterparties but no naming convention is imposed. |
94+
95+ The ` <types> ` element has attribute ` xml:base ` to support inclusion from a separate XML file using the XInclude mechanism.
96+ Thus, common encoding types may be shared across multiple SBE message schemas.
8797
8898Within each set, an unbound number of encodings will be listed in any
8999sequence:
@@ -371,13 +381,24 @@ Multi-value choice example, The choice is encoded as a bitset.
371381</set >
372382```
373383
374- Message template
384+ Message templates
375385--------------------------------------------------------------------------------------------------------------
376386
377- To define a message type, add a ` <message> ` element to the root element
378- of the XML document, ` <messageSchema> ` .
387+ A ` <messages> ` element contains a set of message templates. A message schema may have multiple
388+ instances of ` <messages> ` , if desired, to organize them by categories. Each ` <messages> ` element may have an associated ` package ` name.
389+
390+ ** ` <messages> ` element attribute**
391+
392+ | Schema attribute | Description | XML type | Usage | Valid values |
393+ | ------------------| --------------------------------------------------------------------------------------------------| --------------------| ------------------------| ------------------------------------------------------------------------------|
394+ | package | Overrides package of messageSchema | string | optional | Should be unique between counterparties but no naming convention is imposed. |
395+
396+ The ` <messages> ` element has attribute ` xml:base ` to support inclusion from a separate XML file using the XInclude mechanism.
397+ Thus, common message templates may be shared across multiple SBE message schemas.
398+
399+ To define a message type, add a ` <message> ` element to ` <messages> ` .
379400
380- The ` name ` and ` id ` attributes are required. The first is a display name for
401+ The ` name ` and ` id ` attributes of ` <message> ` are required. The first is a display name for
381402a message, while the latter is a unique numeric identifier, commonly
382403called template ID.
383404
0 commit comments