[jdev] Stream Initiation: extension
Mats Bengtsson
matben at privat.utfors.se
Sat Sep 29 07:58:19 CDT 2007
Norman:
> I'd rather see:
>
> <message to='mari at mus.se/work' type='chat'>
> <thread>ee2944c6</thread>
> <x xmlns='http://jabber.org/protocol/svgwb'>
> <image x='32.0' y='32.0'
> xlink:href='xmpp:mats at home.se/coci?sipub=pub0123'
> id='158229644' width='128' height='128'>
> </image>
> </x>
> <sipub xmlns='http://jabber.org/protocol/si-pub'
> id='publish-0123'
> mime-type='image/png'
> profile='http://jabber.org/protocol/si/profile/file-transfer'>
> <file xmlns='http://jabber.org/protocol/si/profile/file-transfer'
> name='blender.png'
> size='12582'
> date='2004-01-28T10:07Z'>
> <desc>All Shakespearean characters must sign and return this NDA
> ASAP</desc>
> </file>
> </sipub>
> </message>
This seems OK. Then there can be two ways to include a "passive" reference to a file using si:
1) using an URI as in xlink:href='xmpp:mats at home.se/coci?sipub=pub0123'
2) using a child sipub element as described in the XEP
>
> and then the start/starting/si as defined in the si-pub xep.
A was studying
XEP-0137: Publishing Stream Initiation Requests
a bit more careful and it comes pretty close to what I want.
Perhaps the XMPP URI could be added here or in another document as well.
>
> Is there a particular reason to use sipub instead of start/starting?
The conventional way is to use the same tag name as the last part of the xmlns.
They already have used this for the offer so perhaps it could be an idea to have start/starting tags.
In any case a single tag should be necessary for this since it is clear from the context iq-set vs. iq-result
what the action is. Compare the query tag.
>
> (Except for tying the sipub id to the si sid, which if you want to do, then
> let's rather see if we can change the xep to ask for that, instead of
> creating brand new elements. You should be able to track them via your iq's
> id anyways).
>
Not sure I get you here.
In my previous post I had:
<iq type='result' to='mari at mus.se/work' id='3210'>
<sipub xmlns='http://jabber.org/protocol/sipub'
id='pub0123'
sid='3c803c10-6983032b'/>
</iq>
where the last id attribute is superfluous. It can instead read:
<iq type='result' to='mari at mus.se/work' id='3210'>
<sipub xmlns='http://jabber.org/protocol/sipub'
sid='3c803c10-6983032b'/>
</iq>
And the question of the sipub tag I leave open for the moment.
/Mats
More information about the JDev
mailing list