[Standards] Proposed XMPP Extension: Data Element
Peter Saint-Andre
stpeter at stpeter.im
Mon Jan 14 11:17:44 CST 2008
Michael Laukner wrote:
> Peter Saint-Andre wrote:
>> Michael Laukner wrote:
>>> In case of XMPP:
>>>
>>> <message
>>> to="juliet at example.com/balcony"
>>> from="romeo at example.net"
>>> type="chat">
>>> <body>Juliet, I am at geo:47.123,9.3 and feeling kind of dizzy!
>>> </body>
>>> <data xmlns='http:://www.xmpp.org/extensions/xep-xxxx.html#ns'
>>> alt='A spot'
>>> cid='f81d4fae-7dec-11d0-a765-00a0c91e6bf6 at shakespeare.lit'
>>> uri='geo'>
>>> FIXME,FIXME,FIXME
>>> </data>
>>> </message>
>>
>> Er, don't you really want this...?
>>
>> <message
>> to="juliet at example.com/balcony"
>> from="romeo at example.net/orchard"
>> type="chat">
>> <body>
>> Juliet, I am at 47.8N,9.3E and feeling kind of dizzy!
>> </body>
>> <html xmlns='http://jabber.org/protocol/xhtml-im'>
>> <body xmlns='http://www.w3.org/1999/xhtml'>
>> <p>
>> Juliet, I am at <a href='geo:some-geo-uri'>47.8N,9.3E</a>
>> and feeling kind of dizzy!
>> </p>
>> </body>
>> </html>
>> </message>
>
> This message supports the consumer side. We can render the URI nicely as
> an image button and load the map application, but our end-nodes may also
> be producer. In this case we want to attach the geo-data directly (as
> gml, kml, geopriv) to a message, store them in the database on the
> server and send the URI to the MUC participants.
Right. So you want something like this:
<message
to="juliet at example.com/balcony"
from="romeo at example.net/orchard"
type="chat">
<body>
Juliet, I am at 47.8N,9.3E and feeling kind of dizzy!
</body>
<html xmlns='http://jabber.org/protocol/xhtml-im'>
<body xmlns='http://www.w3.org/1999/xhtml'>
<p>
Juliet, I am at <a href='geo:some-geo-uri'>47.8N,9.3E</a>
and feeling kind of dizzy!
</p>
</body>
</html>
<geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
<country>Italy</country>
<lat>47.8</lat>
<locality>Venice</locality>
<lon>9.3</lon>
</geoloc>
</message>
(Or instead of using XEP-0080 format you can embed some Geography Markup
Language XML or whatever you like for your application.)
Peter
--
Peter Saint-Andre
https://stpeter.im/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.jabber.org/pipermail/standards/attachments/20080114/52c4aa90/attachment.bin
More information about the Standards
mailing list