On 2/2/10 9:56 AM, Peter Mount wrote:
> 
> 
> 2010/2/2 Jiří Zárevúcky <[email protected]
> <mailto:[email protected]>>
> 
>     This approach seems sensible only as long as there is only one status
>     per stanza. When there are more than one, then it would be necessary to
>     have a separate 'status' element for each (to maintain compatibility),
>     which IMO would be quite ugly.
> 
> 
> Why not have the new status value as an attribute but in a new namespace?
> 
> eg:
> 
> <presence
>    from='[email protected]/thirdwitch'
>    to='[email protected]/pda'>
>  <x xmlns='http://jabber.org/protocol/muc#user'>
>    <item affiliation='member' role='participant'/>
>    <status code='110' ns1:status="self-presence"
> xmlns:ns1='urn:xmpp:muc-status:0'/>
>  </x>
> </presence>

Because we tend to avoid namespaced attributes. Not necessarily for any
good reason, mind you...

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to