[Standards-JIG] JEP-172 context

Peter Saint-Andre stpeter at jabber.org
Tue Feb 28 23:23:17 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joe Hildebrand wrote:
> I think that JEP-172 as currently written needs a little more.
> 
> At the very minimum, there should be a wrapper element around the x:data
> form to give it context, and to distinguish this data from the more
> context-free forms that existing clients may interpret this information
> as.  

Yes, that makes sense, since the original intent (IIRC) was that x:data
forms would be wrapped in that way.

> Example:
> 
> <message from='bernardo at shakespeare.lit/pda'
> to='francisco at shakespeare.lit' type='chat'>
>   <body>Who's there?</body>
>   <profile xmlns='http://jabber.org/protocol/profile'>
>     <x xmlns='jabber:x:data' type='result'>
>       <field var='FORM_TYPE'
> type='hidden'><value>http://jabber.org/protocol/profile</value></field>
>       <field var='nickname'><value>BernieBoy</value></field>
>     </x>
>   </profile>
> </message>

Is the FORM_TYPE really necessary, then? It seems that we're scoping the
same data twice.

> It would also be nice to specify how to discover support, using caps.

Support for nickname, or profile in general? I'd think this would do the
trick in disco#info results:

<feature var='http://jabber.org/protocol/profile'/>

/psa

- --
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.shtml

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEBNtlNF1RSzyt3NURAhgFAKDbrOObULOSYRFSpHd5dhwvu7LgGwCcDuMV
96vCz3q40HnbreFbGdqzX10=
=17OX
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3641 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/standards/attachments/20060228/5b1bbe91/attachment.bin>


More information about the Standards mailing list