[standards-jig] doubt about disco used in pubsub

Peter Millard me at pgmillard.com
Mon Dec 8 17:06:34 UTC 2003


Fabio Forno wrote:
> I'm working on a pubsub component and I've a doubt about the usage of
> disco for discovering nodes and items. From jep-60 I don't get how to
> discriminate the request of the child nodes of a specified node from its
> items, since for both I should issue something like this:
> <query xmlns="http://jabber.org/protocol/disco#items" node="generic"/>
> What should the pubsub component return? The child nodes, the items or
> both? Or nodes with children should not have published items?

If the "generic" node is a container for other nodes, it should return those
nodes. If the "generic" node is a "leaf" (meaning that it does NOT contain other
nodes in your hierarchial scheme), then it should just return the items in that
node.

pgm.




More information about the Standards mailing list