[Standards] XEP-0258 and XEP-0060
ralphm at ik.nu
Fri Nov 18 06:47:08 UTC 2011
On Thu, Nov 17, 2011 at 07:55:09PM +0000, Ashley Ward wrote:
> On 17/11/2011 18:53, "Ralph Meijer" <ralphm at ik.nu> wrote:
> >Sending this along with the publish request is somewhat more involved.
> >Publish requests are <iq/> stanzas, which can have only one child
> >element. So, I think you would need to put the <securitylabel/> somewhat
> >lower in the element tree. For example, as a subelement of the
> ><publish/> element.
> Yeah. I think it would make most sense for the label to be contained
> within the <item> element, and I believe XEP-0060 already allows the
> <item> element to contain a sequence of any xml elements, so implementing
> this in XEP-0258 shouldn't require any change to XEP-0060.
Alas, this is incorrect. An <item/> element MUST NOT have more than one
child element. See the schema. If present, the child element is the
payload. This restriction doesn't apply to other elements, so I think it
/would/ be ok to have the <securitylabel/> elements as a sibling of
More information about the Standards