From ab220623450efd30c27fd491d3382321939f481a Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 22 Apr 2020 12:50:54 +0200 Subject: [PATCH] ecaps2: mention xml:lang inheritance from The remark already talks about the outer elements as potential source of xml:lang, but it does not explicitly mention the root open element as further source. Better to spell this out explicitly to hint implementors towards it. --- xep-0390.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xep-0390.xml b/xep-0390.xml index 3662afbe..29977f50 100644 --- a/xep-0390.xml +++ b/xep-0390.xml @@ -130,7 +130,7 @@

General remarks:

  • The algorithm strongly distinguishes between character data (sequences of Unicode code points) and octet strings (sequences of 8-bit bytes). Whenever character data is encoded to octet strings in the following algorithm, the UTF-8 as specified in &rfc3629; encoding is used. Whenever octet strings are sorted in the following algorithm, the i;octet collation as specified in &rfc4790; is used.

  • -
  • The algorithm uses the xml:lang attribute. Implementations must take implicit values for the xml:lang attribute into account, for example those inherited from the disco#info or the IQ element.

  • +
  • The algorithm uses the xml:lang attribute. Implementations must take implicit values for the xml:lang attribute into account, for example those inherited from the disco#info, the IQ element, or from the root <stream> tag.

  1. If the <query/> element contains any elements except <identity/>, <feature/> (both from the &xep0030; disco#info namespace) or &xep0128; data forms, abort with an error.