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 that does not include fields, instructions, or title elements. >> (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 :) > 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. > 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]. —Sam [1]: https://github.com/horazont/aioxmpp/blob/949a91c25b550f5fa0ca84c8134c2c6f566cb094/aioxmpp/forms/xso.py#L615-L617 [2]: https://dev.gajim.org/gajim/python-nbxmpp/-/blob/master/nbxmpp/modules/dataforms.py#L710 [3]: https://github.com/igniterealtime/Smack/blob/ef003bbc5c8c47fb6f32ac78631168d4b197fe0a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/provider/DataFormProvider.java#L69-L73 -- Sam Whited _______________________________________________ Standards mailing list Info: https://mail.jabber.org/mailman/listinfo/standards Unsubscribe: [email protected] _______________________________________________
