On 7/17/22 3:03 PM, Sam Whited wrote:
On Sun, Jul 17, 2022, at 14:04, Peter Saint-Andre wrote:
Maybe. The text in effect says "here are some additional elements not
mentioned so far in the spec", not "these new elements are included in
addition to other elements within the XML".
This sounds like the original intent was for this to be a separate data
type
Could you clarify what you mean by a separate data type? Are you
suggesting that, say, <form type='reported'> might have been cleaner
than overloading <form type='result'> (if that's what we did)?
that does not include fields, instructions, or title elements.
I believe so. But we cooked this up 20+ years ago and my memory might
faulty. :-)
(though there are no examples where a form contains reported/items
and any other form element).
The lack of examples is indeed not good.
But this sounds like it should contain those other elements, so it's
still not clear to me what the original intent was :)
I meant the lack of examples in general, not the lack of examples of
reported + items + field/instructions/title.
What use cases do folks have in mind nowadays for multi-item data
forms of type 'result'?
I think singpolymas example was a good one: the jmp.chat folks would
like to display some form information that includes your account
balance, and below that a table (aka multi-item form) of recent
transactions.
This sounds like "reported" without a prior request. I suppose that's
OK, but it seems slightly unexpected.
Do these libraries allow multiple items in forms of type 'cancel',
'form', and 'submit', or only 'result'?
As far as I can tell aioxmpp errors if you try to create or parse a form
with multiple items that is of a type other than result [1], but nbxmpp and
Smack
will let you parse or build a form of any type with items [2, 3].
Interesting. I do think this was intended for use only with 'result' forms.
Peter
_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: [email protected]
_______________________________________________