On Thu Jan 26 21:58:04 2012, Michael Laukner wrote:
Is the following approach already XMPP standards compliant (i.a.w.
XEP-0068: Field Standardization for Data Forms):
<x xmlns='jabber:x:data' type='form'>
[ ... ]
<field var='location'>
<geolocxmlns="http://jabber.org/protocol/geoloc">
<text>Paris, France</text>
<locality>Paris</locality>
<country>France</country>
</geoloc>
</field>
[ ... ]
</x>
or does this require a new XEP similar to XEP-0221 ?
I don't think this is currently compliant (with any specification in
particular).
XEP-0221 essentially provides ways of providing media data in a form
as a challenge, rather than as a response - or at least, that's
certainly how it's used in XEP-0158. THis might explain why they
don't use the type except as the type of the response - hence it's
usually left as type-single (the default).
So if your intent is to provide a geoloc blob inside a form, perhaps
in response to a search form, for instance, then I think your
solution above is OK, but would need a XEP - I think.
If you're asking for a way to prompt for, and enter a geoloc blob as
a submitted value in a form, then we need to define a type, and
possibly more.
Dave.
--
Dave Cridland - mailto:[email protected] - xmpp:[email protected]
- acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
- http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade