[Standards-JIG] Re: JEP 0060 (Pubsub) node meta-data

Peter Saint-Andre stpeter at jabber.org
Wed Jan 19 23:30:08 UTC 2005


In article <e278a119050119015150b72a9b at mail.gmail.com>,
 Stijn Van Rompaey <stijnvr at gmail.com> wrote:

> On Tue, 18 Jan 2005 13:56:27 -0700, Peter Saint-Andre
> <stpeter at jabber.org> wrote:
> > In article <20050114133005.GA49509 at localhost>,
> >  Ralph Meijer <jabber.org at ralphm.ik.nu> wrote:
> > 
> > > On Thu, Jan 13, 2005 at 05:00:19PM +0100, Stijn Van Rompaey wrote:
> > > > I have a question about the node creation process, regarding sections
> > > > 8.1.2 (Create a new Node) and 8.1.12 (Discover Node Meta-Data). Before
> > > > requesting the node meta-data (DCMI) it seems logical that you first
> > > > have to specify this meta-data upon node creation.
> > > > How do you specify this meta-data?
> > > > Is this done using the configure tag?
> > >
> > > It is assumed that most meta data is set via the <configure/> element. 
> > > Other
> > > information, like node creation, current publishers, etc., can be added
> > > to this dynamically.
> > 
> > And if non-dynamic metadata is missing from the configuration options,
> > please point that out so we can finish cleaning up this JEP. :-)
> > 
> > /psa
> > 
> 
> So if I understand correctly, specifying the nodes meta-data should
> looks something like the following, or am I missing the picture. If
> this is correct maybe it is usefull to add an extra example of this to
> the section 8.1.2 about node creation?
> 
> <iq type="set"
>  from="pgm at jabber.org"
>  to="pubsub.jabber.org"
>  id="create1">
>  <pubsub xmlns="http://jabber.org/protocol/pubsub">
>   <create node="generic/pgm-mp3-player"/>
>   <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#delive_payloads">
>        <value>1</value>
>      </field>
>      ... (other fields)
>     </x>
>     <x xmlns="jabber:x:data" type="submit">
>      <field var="FORM_TYPE" type="hidden">
>       <value>http://jabber.org/protocol/pubsub#meta-data</value>
>      </field var="pubsub#description" label="A description of the node">
>       <value>This node rocks!</value>
>      <field>
>      ... (other fields)
>    </configure>
>  </pubsub>
> </iq>
> 
> <iq type="result"
>  from="pubsub.jabber.org"
>  to="pgm at jabber.org"
>  id="create1"/>
> 

Well, no, if there are non-dynamic metadata fields, they will just be in 
the configuration form -- so that there will be only one x:data form in 
the <configure/> element, not two.

/psa




More information about the Standards mailing list