[standards-jig] extending disco#info result

Richard Dobson richard at dobson-i.net
Thu Feb 26 15:36:39 UTC 2004

> I think Matt meant modified in the sense of textual clarification (you
> are not required to follow a form-submit-result sequence in x-data), not
> in the sense of protocol changes.

That would be good as all the examples that I scanned through showed that to
get x:data results you have to first have made an x:data request seemingly,
examples of using x:data as an extension in protocols would be useful.

Also to clarify things which one of us got the usage of x:data result
correct, as far as I can see this is the appropriate usage:

<x xmlns='jabber:x:data' type='result'>
  <title>MUC Room Properties</title>
    <field var='muc#room_desc' label='Description'/>
    <field var='muc#room_subj' label='Subject'/>
    <field var='muc#room_occupants' label='Number of Occupants'/>
    <field var='muc#room_desc'><value>The place for all good
    <field var='muc#room_subj'><value>The place for all good
    <field var='muc#room_occupants'><value>3</value></field>

But Matthew Miller seems to think this is the right way:

<x xmlns='jabber:x:data' type='result'>
  <field var='FORM_TYPE' type='hidden'>
  <field var='muc#room_desc' label='Description'>
    <value>The place for all good witches!</value>
  <field var='muc#room_subj' label='Subject'>
    <value>The place for all good witches!</value>
  <field var='muc#room_occupants' label='Number of Occupants'>
    <validate xmlns='http://jabber.org/protocol/xdata-validate'

Or are they both correct?


More information about the Standards mailing list