[Standards-JIG] JEP-0060 "max-items" ... missing "start-at-item"
Peter Saint-Andre
stpeter at jabber.org
Mon Jun 12 15:14:13 CDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter Saint-Andre wrote:
> bernhard wrote:
>>> 8.1.10 Get Items for a Node
>>> specifies that it is possible to use the "max_items" attribute to
>>> request the most recent N items.
>>>
>>> If the number of items in a node is very high, shouldn't there be a
>>> attribute "start-at-item"?
>>>
>>> The application should be able to request item 1 to100; 101 to 200; 201
>>> to300,....
>
> Yes, we probably need that. It's conceptually the same as what we define
> in JEP-0059:
>
> http://www.jabber.org/jeps/jep-0059.html
An alternative would be to use JEP-0059 syntax directly...
<iq type='get'
from='francisco at denmark.lit/barracks'
to='pubsub.shakespeare.lit'
id='items2'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<items node='princely_musings'>
<set xmlns='http://jabber.org/protocol/rsm'>
<max>10</max>
<start>1</start>
</set>
</items>
</pubsub>
</iq>
(receive first set of results)
<iq type='get'
from='francisco at denmark.lit/barracks'
to='pubsub.shakespeare.lit'
id='items2'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<items node='princely_musings'>
<set xmlns='http://jabber.org/protocol/rsm'>
<max>10</max>
<start>11</start>
</set>
</items>
</pubsub>
</iq>
(receive second set of results)
Etc.
Peter
- --
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.shtml
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEjcsVNF1RSzyt3NURAmz3AJ96pbuXdZxfpSy+e2LE/K2bySAd6QCfYHiZ
HlBc6djlVJTXjmUAgbSECaw=
=eK2V
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3641 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.jabber.org/pipermail/standards/attachments/20060612/bf0d46b0/smime.bin
More information about the Standards-JIG
mailing list