Skip to content

Commit 418fdce

Browse files
committed
1 parent 86e3bd5 commit 418fdce

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

v2-0-RC2/doc/01Introduction.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,6 @@ Representation of dates and times
185185
Securities and related financial instruments - Codes for exchanges and
186186
market identification (MIC)
187187

188-
[W3C XML Schema version 1.1](https://www.w3.org/TR/2006/REC-xml11-20060816/)
188+
*W3C XML Schema version 1.0* [Part 1](https://www.w3.org/TR/xmlschema-1/) [Part 2](https://www.w3.org/TR/xmlschema-2/)
189+
190+
[W3C XML Inclusions (XInclude) Version 1.0](https://www.w3.org/TR/xinclude/)

v2-0-RC2/doc/04MessageSchema.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ XML schema for SBE message schemas
55
---------
66
See [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

1112
XML 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

8898
Within each set, an unbound number of encodings will be listed in any
8999
sequence:
@@ -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
381402
a message, while the latter is a unique numeric identifier, commonly
382403
called template ID.
383404

0 commit comments

Comments
 (0)