[Standards] Proposed XMPP Extension: Character counting in message bodies
ralphm at ik.nu
Sat Dec 21 11:21:48 UTC 2019
On December 21, 2019 11:57:19 AM GMT+01:00, Andrew Nenakhov <andrew.nenakhov at redsolution.com> wrote:
>сб, 21 дек. 2019 г. в 15:45, Philipp Hörist <philipp at hoerist.com>:
>> I think you misunderstood the RFC, it's not a violation to send ">"
>> > The right angle bracket (>) *may *be represented using the string "
>> ", and *MUST*, for compatibility
>> <https://www.w3.org/TR/REC-xml/#dt-compat>, be escaped using either "
>> " or a character reference *when *it appears in the string " ]]> " in
>> content, when that string is not marking the end of a CDATA section
>I have a different reading of this.
>MUST be escaped using
>OR character reference (WHEN it appears in the string ... ...)
>so OR branch is clearly used only for case listed in WHEN
Just making sure everyone has the same interpretation:
Case 1) The text has the sequence ]]>. In this case, in XML the > MUST be escaped (with >, or equivalent character reference).
Case 2) All occurances of > not preceded by ]]. Here > MAY appear as-is, or escaped. Both are valid.
More information about the Standards