[Standards] Proposed XMPP Extension: Character counting in message bodies
flo at geekplace.eu
Sat Dec 21 11:53:30 UTC 2019
On 21.12.19 12:32, Andrew Nenakhov wrote:
> сб, 21 дек. 2019 г. в 16:21, Ralph Meijer <ralphm at ik.nu
> <mailto:ralphm at ik.nu>>:
> 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.
> Well. We diverge here, and read it differently. MUST be escaped clause
> uses AND, it's is not optiona. The reason it MUST be escaped is _for
> compatibility_, and we are in a compatibility game, aren't we?
> For argument's sake, can you provide examples of XML processing
> libraries that work the way you describe and do not escape > all the
> time? We know none such, and we've tested dozens of them over the many
> years. Every single one always did the escaping. As I think it should,
> because consistency.
Smack does not escape all the time:
Also xmllint says that '>' in text is well-formed.
$ echo "<example>></example>" | xmllint --noout -
$ echo "<example><</example>" | xmllint --noout -
-:1: parser error : StartTag: invalid element name
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 618 bytes
Desc: OpenPGP digital signature
More information about the Standards