[standards-jig] extending disco#info result

Richard Dobson richard at dobson-i.net
Wed Feb 25 16:07:08 UTC 2004


> If we really must define a
> generic extension mechanism for extra properties why dont we just do
> something simple and clean for this

What about something like this:

<iq type='result'
    from='darkcave at macbeth.shakespeare.lit'
    to='hag66 at shakespeare.lit/pda'>
  <query xmlns='http://jabber.org/protocol/disco#info'>
    <identity
        category='conference'
        type='text'
        name='A Dark Cave'/>
    <feature var='http://jabber.org/protocol/muc'/>
    <feature var='muc_temporary'/>
    <feature var='muc_unmoderated'/>
    <feature var='muc_nonanonymous'/>
    <prop var='muc_desc' name='Description'>The place for all good
witches!</prop>
    <prop var='muc_subject' name='Subject'>Fire Burn and Cauldron
Bubble</prop>
    <prop var='muc_occupants' name='Number of Occupants'>3</prop>
  </query>
</iq>

This is generic, allows non knowing clients to display the properties
appropriately because of the name attribute, is simple and is much more
inkeeping with the style of disco#info as it is similar looking to the
features.

Richard




More information about the Standards mailing list