[PubSub] [Standards] XEP-0060: Example 89. Publisher publishes an item with an ItemID

Peter Saint-Andre stpeter at stpeter.im
Tue Apr 14 18:17:26 CDT 2009


Fixed.

On 11/20/08 7:57 AM, Jehan wrote:
> Hi,
> 
> I think to have found a small miss in the XEP-0060 (pubsub). The
> Example 89 is called "Publisher publishes an item with an ItemID"... But
> it has no item id!
> 
> The example is:
>> <iq type='set' from='hamlet at denmark.lit/blogbot'
>> to='pubsub.shakespeare.lit' id='publish1'>
>> <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>> <publish node='princely_musings'>
>> <item>
>> <entry xmlns='http://www.w3.org/2005/Atom'>
>> <title>Soliloquy</title>
>> <summary> To be, or not to be: that is the question: Whether 'tis
>> nobler in the mind to suffer The slings and arrows of outrageous
>> fortune, Or to take arms against a sea of troubles, And by opposing end
>> them? </summary>
>> <link rel='alternate' type='text/html'
>> href='http://denmark.lit/2003/12/13/atom03'/>
>> <id>tag:denmark.lit,2003:entry-32397</id>
>> <published>2003-12-13T18:30:02Z</published>
>> <updated>2003-12-13T18:30:02Z</updated>
>> </entry>
>> </item>
>> </publish>
>> </pubsub>
>> </iq>
> 
> According to the text just before:
>> The <item/> element provided by the publisher MAY possess an 'id'
>> attribute, specifying a unique ItemID for the item. If an ItemID is not
>> provided in the publish request, the pubsub service MUST generate one
>> and MUST ensure that it is unique for that node.
> 
> I guess it should be:
> 
>> <iq type='set' from='hamlet at denmark.lit/blogbot'
>> to='pubsub.shakespeare.lit' id='publish1'>
>> <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>> <publish node='princely_musings'>
>> <item id="some_id">
>> <entry xmlns='http://www.w3.org/2005/Atom'>
>> <title>Soliloquy</title>
>> <summary> To be, or not to be: that is the question: Whether 'tis
>> nobler in the mind to suffer The slings and arrows of outrageous
>> fortune, Or to take arms against a sea of troubles, And by opposing end
>> them? </summary>
>> <link rel='alternate' type='text/html'
>> href='http://denmark.lit/2003/12/13/atom03'/>
>> <id>tag:denmark.lit,2003:entry-32397</id>
>> <published>2003-12-13T18:30:02Z</published>
>> <updated>2003-12-13T18:30:02Z</updated>
>> </entry>
>> </item>
>> </publish>
>> </pubsub>
>> </iq>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6751 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.jabber.org/pipermail/pubsub/attachments/20090414/1307ffae/attachment.bin 


More information about the PubSub mailing list