Using extension attributes is a perfectly legitimate solution.  The one
drawback is that not all implementations will support 'em.

- James

James Aylett wrote:
> We've run across a situation where we want to annotate an atom:icon
> with a title. Currently we're doing the following, as something that
> Feed Validator is happy with, but doesn't feel right:
> 
> ----------------------------------------------------------------------
>   <atom:icon>uri:to/icon</atom:icon>
>   <myns:icon-title xml:lang='en' xmlns:myns='...'>My icon
>     title</myns:icon-title>
> ----------------------------------------------------------------------
> 
> It doesn't express the relationship directly. The way that would be
> most natural in XML doesn't seem to be allowed (because we don't have
> extension attributes):
> 
> ----------------------------------------------------------------------
>   <atom:icon myns:title='My icon title' ...>uri:to/icon</atom:icon>
> ----------------------------------------------------------------------
> 
> and all other ways I can think of involve extension elements in the
> wrong place.
> 
> Anyone have another suggestion on how to approach this? Or would we be
> better off adding our own <myns:icon/> which we can decorate with
> titles, languages and whatever to our heart's content, even though
> it's redundant to some extent?
> 
> James
> 

Reply via email to