[uf-discuss] Size considerations (or how to choose abbreviations)

Brian Suda brian.suda at gmail.com
Fri Oct 20 05:26:38 PDT 2006


On 10/20/06, Mike Schinkel <mikeschinkel at gmail.com> wrote:
> However, and this is an honest question, isn't "currency" and "amount"
> really only valid in context with "money?"  Wouldn't that make it okay to
> abbreviate the children of money, like so?:
>
>         <span class="money">
>            <abbr class="cur" title="USD">$</abbr>
>            <span class="amt">5.99</span>
>         </span>

--- the tricky thing is that there are no namespaces in Microformats,
so if you use cur, sure it is scopped to 'money', but it is now a
'reserved word' for all of microformats. As it was pointed out in a
previous message, then what happens to 'cursor' or 'current', you
can't do: <span class="time"><span class="cur">now()</span></span>
even thought that 'cur' is scoped to some ficticious 'time', it still
would mean 'currency'.

It is best to be as explicit as possible and use the full names.
Infact, in the world or reuse, that probably should be:

         <span class="money">
            <abbr class="type" title="USD">$</abbr>
            <span class="value">5.99</span>
         </span>

ADR, TEL, and others (probably UID) use that structure. It works, no
need to re-invent the wheel and add more terms that mean the same
thing.

-brian

-- 
brian suda
http://suda.co.uk


More information about the microformats-discuss mailing list