Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 5 additions & 17 deletions spec/data-model/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MessageFormat 2.0 Data Model
# Interchange Data Model

This section defines a data model representation of MessageFormat 2 _messages_.

Expand Down Expand Up @@ -33,26 +33,14 @@ This data model might also be used to:

To ensure compatibility across all platforms,
this interchange data model is defined here using TypeScript notation.
Two equivalent definitions of the data model are also provided:

- [`message.json`](./message.json) is a JSON Schema definition,
for use with message data encoded as JSON or compatible formats, such as YAML.
- [`message.dtd`](./message.dtd) is a document type definition (DTD),
for use with message data encoded as XML.
An equivalent JSON Schema definition [`message.json`](./message.json) is also provided,
for use with message data encoded as JSON or compatible formats, such as YAML.

Note that while the data model description below is the canonical one,
the JSON and DTD definitions are intended for interchange between systems and processors.
To that end, they relax some aspects of the data model, such as allowing
the JSON Schema definition is intended for interchange between systems and processors.
To that end, it relaxes some aspects of the data model, such as allowing
declarations, options, and attributes to be optional rather than required properties.

> [!NOTE]
> Users relying on XML representations of messages should note that
> XML 1.0 does not allow for the representation of all C0 control characters (U+0000-U+001F).
> Except for U+0000 NULL , these characters are allowed in MessageFormat 2 messages,
> so systems and users relying on this XML representation for interchange
> might need to supply an alternate escape mechanism to support messages
> that contain these characters.

> [!IMPORTANT]
> The data model uses the field name `name` to denote various interface identifiers.
> In the MessageFormat 2 [syntax](/spec/syntax.md), the source for these `name` fields
Expand Down
43 changes: 0 additions & 43 deletions spec/data-model/message.dtd

This file was deleted.

2 changes: 1 addition & 1 deletion spec/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
1. [Errors](errors.md)
1. [Default Function Registry](functions/README.md)
1. [`u:` Namespace](u-namespace.md)
1. [Interchange data model](data-model/README.md)
1. [Interchange Data Model](data-model/README.md)
1. [Appendices](appendices.md)
1. [Security Considerations](appendices.md#security-considerations)
1. [Acknowledgements](appendices.md#acknowledgements)
Expand Down