[Standards] XEP-0107: Multiple moods?

Ralph Meijer jabber.org at ralphm.ik.nu
Thu Feb 7 13:13:04 UTC 2008


On Mon, 2008-02-04 at 15:50 -0700, Peter Saint-Andre wrote:
> Dallas Gutauckis wrote:
> > Peter Saint-Andre wrote:
> >> Dallas Gutauckis wrote:
> >>  
> >>> If we're going to be changing XEP-0107, may I also propose that mood
> >>> values be moved from being the node name to the node's attribute or
> >>> value, and moving text into the node value?
> >>>     
> >>
> >> Because that breaks all existing implementations. We like
> >> backwards-compatability.
> >>
> >> Peter
> >>
> >>   
> > A good argument for changing this is that this XEP is still in a draft
> > state and should be open to changes.
> 
> A good argument against changing this XEP is that it is in a draft state
> and should be open only to changes that are backwards-compatible if at
> all possible, especially w.r.t. changes that are philosophical or
> esthetic instead of functional or related to privacy and security.
> 
> > Node names in XML should never be dynamic, even if they are pre-defined.
> 
> I assume you would prefer this:
> 
> <mood xmlns='http://jabber.org/protocol/mood'
>       value='happy'/>
> 
> ... to this:
> 
> <mood xmlns='http://jabber.org/protocol/mood'>
>   <happy/>
> </mood>
> 
> And I consider that to be an esthetic argument ("attributes are more
> elegant than elements").

Also, we had that in an earlier version of this specification and
changed it to be similar to other formats, like User Activity. It allows
for better extensibility, as you can provide a namespaced element
instead of <happy/>, but still use the <text/> element to go with it.

-- 
Groetjes,

ralphm




More information about the Standards mailing list