Skip to content

Commit

Permalink
Add note about XML C0 characters adding restrictions (#681)
Browse files Browse the repository at this point in the history
* Add note about XML C0 characters adding restrictions

* Apply suggestions from code review

Co-authored-by: Addison Phillips <[email protected]>

* Update note to match NUL removal, drop XML 1.1 mention

* Drop mention of "resource format"

Co-authored-by: Addison Phillips <[email protected]>

---------

Co-authored-by: Addison Phillips <[email protected]>
  • Loading branch information
eemeli and aphillips authored Feb 27, 2024
1 parent 9ca7e84 commit d2b5fd8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/data-model/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ the JSON and DTD definitions are intended for interchange between systems and pr
To that end, they relax 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

0 comments on commit d2b5fd8

Please sign in to comment.