XEP-0072, XEP-0096, XEP-0214: fix xmlns in sipub examples

This commit is contained in:
Georg Lukas 2022-03-11 17:31:45 +01:00
parent e4d3f721c2
commit 58cec1b6fb
3 changed files with 9 additions and 9 deletions

View File

@ -393,7 +393,7 @@
</p:itinerary>
</env:Body>
</env:Envelope>
<sipub xmlns='http://jabber.org/protocol/si-pub'
<sipub xmlns='http://jabber.org/protocol/sipub'
id='publish-2345'
mime-type='image/png'
profile='http://jabber.org/protocol/si/profile/file-transfer'>
@ -564,7 +564,7 @@
</x:MyData>
</env:Body>
</env:Envelope>
<sipub xmlns='http://jabber.org/protocol/si-pub'
<sipub xmlns='http://jabber.org/protocol/sipub'
id='publish-2345'
mime-type='image/png'
profile='http://jabber.org/protocol/si/profile/file-transfer'>

View File

@ -312,7 +312,7 @@ xmpp:romeo@montague.net/orchard?sendfile
<p>The application SHOULD then present an interface enabling the user to provide information about the file to be sent (e.g., by "browsing" the file system of the user's computer in order to choose a file). As a result, the application SHOULD then send a &xep0137; message to the XMPP address encapsulated in the IRI/URI:</p>
<example caption='Sending a File: Resulting Stanza'><![CDATA[
<message from='juliet@capulet.com/balcony' to='romeo@montague.net'>
<sipub xmlns='http://jabber.org/protocol/si-pub'
<sipub xmlns='http://jabber.org/protocol/sipub'
id='publish-0123'
mime-type='text/plain'
profile='http://jabber.org/protocol/si/profile/file-transfer'>
@ -341,7 +341,7 @@ xmpp:romeo@montague.net/orchard?recvfile;sid=pub234;mime-type=text%2Fplain;name=
<p>That IRI/URI is equivalent to the following XML stanza:</p>
<example caption='Receiving a File: Equivalent Stanza'><![CDATA[
<message from='romeo@montague.net' to='juliet@capulet.com/balcony'>
<sipub xmlns='http://jabber.org/protocol/si-pub'
<sipub xmlns='http://jabber.org/protocol/sipub'
id='pub234'
mime-type='text/plain'
profile='http://jabber.org/protocol/si/profile/file-transfer'>
@ -354,7 +354,7 @@ xmpp:romeo@montague.net/orchard?recvfile;sid=pub234;mime-type=text%2Fplain;name=
<p>In accordance with <cite>XEP-0137</cite>, the application SHOULD then initiate a file transfer exchange with by sending a stanza of the following form:</p>
<example caption='Receiving a File: Resulting Stanza'><![CDATA[
<iq from='juliet@capulet.com/balcony' to='romeo@montague.net/orchard'>
<start xmlns='http://jabber.org/protocol/si-pub' id='pub234'/>
<start xmlns='http://jabber.org/protocol/sipub' id='pub234'/>
</iq>
]]></example>
<p>Note well that the request to begin the stream is sent to the full JID (user@host/resource) of the XMPP entity identified by the XMPP IRI/URI. Therefore, the IRI/URI SHOULD include a full JID. If it does not, the receiver MUST discover a full JID via presence or service discovery. If the receiver cannot discover a full JID for the sender (e.g., in the last resort through sending a presence subscription request to the sender and receiving presence from the sender's resources), then it SHOULD abort the file transfer exchange.</p>

View File

@ -254,7 +254,7 @@
<description>My Latest Sonnet!</description>
<mirrors>
<mirror type='sipub' description='File Transfer via capulet.com fileserver'>
<sipub xmlns='http://jabber.org/protocol/si-pub'
<sipub xmlns='http://jabber.org/protocol/sipub'
from='fileserver@capulet.com'
id='publish-sonnet.txt'
mime-type='text/plain'
@ -265,7 +265,7 @@
</sipub>
</mirror>
<mirror type='sipub' description='Jingle HTTP File Transfer via capulet.com fileserver'>
<sipub xmlns='http://jabber.org/protocol/si-pub'
<sipub xmlns='http://jabber.org/protocol/sipub'
from='fileserver-httpft@capulet.com'
id='publish-sonnet.txt'
mime-type='text/plain'
@ -437,7 +437,7 @@
address='www.shakespeare.lit'
ref='~juliet/sonnet2.txt'/>
<mirror type='sipub' description='File Transfer via capulet.com fileserver'>
<sipub xmlns='http://jabber.org/protocol/si-pub'
<sipub xmlns='http://jabber.org/protocol/sipub'
from='fileserver@capulet.com'
id='publish-sonnet2.txt'
mime-type='text/plain'
@ -474,7 +474,7 @@
address='www.shakespeare.lit'
ref='~juliet/sonnet2.txt'/>
<mirror type='sipub' description='File Transfer via capulet.com fileserver'>
<sipub xmlns='http://jabber.org/protocol/si-pub'
<sipub xmlns='http://jabber.org/protocol/sipub'
from='fileserver@capulet.com'
id='publish-sonnet2.txt'
mime-type='text/plain'