[Standards] Pubsub: Any reason to keep restriction on multiple x:data forms in the same message?

Peter Saint-Andre stpeter at jabber.org
Mon Jan 29 18:07:12 UTC 2007

I don't have any deep objections to removing the restriction. I'd be 
curious to see how existing pubsub implementations handle it...

Nick Parker wrote:
> Are there any reasons to keep the current restriction of multiple x:data 
> elements in <configure/>? Things start getting ugly when you're 
> creating/configuring several nodes at once, since you currently have to 
> submit different portions of each node's configuration in multiple 
> messages.
> Here's an example of two merged forms (node_config and meta_data) from 
> an earlier discussion:
> Peter Saint-Andre wrote:
>> You'd send the two forms like this:
>> <iq type='set'
>>    from='juliet at capulet.com/balcony'
>>    to='pubsub.shakespeare.lit'
>>    id='create3'>
>>  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>>    <create node='NODEID'/>
>>    <configure>
>>      <x xmlns='jabber:x:data' type='submit'>
>>        <field var='FORM_TYPE' type='hidden'>
>>          <value>http://jabber.org/protocol/pubsub#node_config</value>
>>        </field>
>>        <field 
>> var='pubsub#collection'><value>juliets_sonnets</value></field>
>>        <field var='pubsub#node_type'><value>collection</value></field>
>>      </x>
>>      <x xmlns='jabber:x:data' type='submit'>
>>        <field var='FORM_TYPE' type='hidden'>
>>          <value>http://jabber.org/protocol/pubsub#meta-data</value>
>>        </field>
>>        <field var='pubsub#title'><value>Sonnets</value></field>
>>        <field var='pubsub#description'><value>Description</value></field>
>>      </x>
>>    </configure>
>>  </pubsub>
>> </iq>
>> However, currently the schemas for the pubsub namespaces forbid 
>> including more than one x:data form in the <configure/> element. 
>> Therefore you'd need to send two different IQs, unless we change the 
>> schemas to allow including more than one data form.
>> Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7358 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/standards/attachments/20070129/483a39b5/attachment.bin>

More information about the Standards mailing list