[uf-discuss] 'currency' microformat straw-man proposal.

Scott Reynen scott at randomchaos.com
Wed Sep 20 14:49:48 PDT 2006


On Sep 20, 2006, at 4:18 PM, Andy Mabbett wrote:

>> <abbr class="currency" title="USD">
>>       <span class="amount">42.67</span>
>> </abbr>
>>
>> Isn't this suggesting that "42.67" is an abbreviation for "USD"?
>
> I've commented before that microformats already "misuse" <abbr> in  
> this
> way.

Where is that?  I don't remember seeing anything like this, where one  
piece of information is declared as abbreviation for another and  
they're not even the same kind of information.

>> More generally, if the currency isn't published anywhere, doesn't   
>> that
>> make it out of scope for microformats?
>
> The example, which you've only partially quoted, is a table row;
> elsewhere in that Wiki entry, I've talked of such rows having header
> cells; again, the wider issue is something I've addressed elsewhere.

Okay, it wasn't clear to me that the examples were part of a larger  
document with relevant data elsewhere.  That's probably another  
argument for using explicit inclusion:

> How would you solve these two issues?

When the data is on the page, this seems like an ideal use of the  
include pattern:

<http://microformats.org/wiki/include-pattern>

Specifically, something like this:

<th><abbr title="USD" id="usd" class="currency">Cost</abbr></th>

[...]

<td class="money">
	<a class="include" href="#usd"></a>
	<span class="amount">42.67</span>
</td>

There's been some previous discussion of table columns specifically  
here, but I'm not as clear on that:

<http://microformats.org/wiki/hcalendar- 
brainstorming#Tabular_event_calendars>

When the data is not on the page at all, I'd say that's out of scope  
for microformats.

Peace,
Scott


More information about the microformats-discuss mailing list