Peter Saint-Andre wrote:
XMPP Extensions Editor wrote:
The XMPP Extensions Editor has received a proposal for a new XEP.
Title: Data Element
Abstract: This document specifies a method for including small bits
of binary data in an XMPP stanza via the data: URL scheme.
URL: http://www.xmpp.org/extensions/inbox/data-element.html
See, that was easy, wasn't it? ;-)
/psa
This XEP seems to get close to what we want to achieve. A challenge for
the message exchange in our environment is the transmission of
structured information within a regular message. This structured
information may be geographic coordinates, date/time groups, or a
references to an data object, for example.
To be able to embed various structured information in a message, the
message shall contain a "SmartTag". This "SmartTag" shall be as close to
text as "Emoticons" are, but structured enough for enhanced clients to
make some sense out of it.
The example below was drafted before knowing the Data Element XEP:
<message
to="[EMAIL PROTECTED]/balcony"
from="[EMAIL PROTECTED]"
type="chat">
<body>Juliet, I am at _1[47.8N,9.3E] and feeling kind of dizzy!
You can find my new picture here _2[PIC-DB,4711].
</body>
<TagList xmlns="urn:xmpptag">
<Tag ref="_1">
<GeoPosition2D xmlns="urn:common">
<Latitude units="degrees">47.8123</Latitude>
<Longitude units="degrees">9.2947</Longitude>
</GeoPosition2D>
</Tag>
<Tag ref="_2">
<DRef libraryId="PIC-DB" productId="4711"/>
</Tag>
</TagList>
</message>
Could this XEP be designed to support more than just MIME-types???
i.e. geo data could be encoded using Geo URI:
http://www.ietf.org/internet-drafts/draft-mayrhofer-geo-uri-01.txt
'geo' URIs could (like any other URI scheme) also be embedded as
hyperlinks in web pages. A Hyper Text Markup Language (HTML) FIXME:
ref snippet with such a hyperlink could look like:
<p>one of Vienna's most popular sights is the <a href=' geo:
FIXME,FIXME,FIXME'>St. Stephans Cathedral</a>
In case of XMPP:
<message
to="[EMAIL PROTECTED]/balcony"
from="[EMAIL PROTECTED]"
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='[EMAIL PROTECTED]'
uri='geo'>
FIXME,FIXME,FIXME
</data>
</message>