Skip to content

Commit d2b5fd8

Browse files
eemeliaphillips
andauthored
Add note about XML C0 characters adding restrictions (#681)
* 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]>
1 parent 9ca7e84 commit d2b5fd8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/data-model/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ the JSON and DTD definitions are intended for interchange between systems and pr
4646
To that end, they relax some aspects of the data model, such as allowing
4747
declarations, options, and attributes to be optional rather than required properties.
4848

49+
> [!NOTE]
50+
> Users relying on XML representations of messages should note that
51+
> XML 1.0 does not allow for the representation of all C0 control characters (U+0000-U+001F).
52+
> Except for U+0000 NULL , these characters are allowed in MessageFormat 2 messages,
53+
> so systems and users relying on this XML representation for interchange
54+
> might need to supply an alternate escape mechanism to support messages
55+
> that contain these characters.
56+
4957
> [!IMPORTANT]
5058
> The data model uses the field name `name` to denote various interface identifiers.
5159
> In the MessageFormat 2 [syntax](/spec/syntax.md), the source for these `name` fields

0 commit comments

Comments
 (0)