[uf-discuss] Best practice for the "value" subproperty
Costello, Roger L.
costello at mitre.org
Wed Nov 1 09:18:10 PST 2006
Very interesting idea Andy. Thanks.
Okay, now we have three design approaches to marking up this text:
John will be our speaker. Mr. Public will talk about ...
The three designs are:
Design #1
<span class="fn">
<span class="value">John </span>
will be our speaker. Mr.
<span class="value">Public</span>
</span>
will talk about ...
The value of "fn" is the concatenation of the "value" subproperties:
fn = concat('John ', 'Public') = John Public
Notice the space after John. This enables the fn value to be
formatted.
Design #2
<span class="fn">
<span class="value">John</span>
<span class="value"> </span>
will be our speaker. Mr.
<span class="value">Public</span>
</span>
will talk about ...
The value of "fn" is the concatenation of the "value" subproperties:
fn = concat('John', ' ', 'Public') = John Public
Notice that now there is a concatenation of three values, the middle
being a "spacer value."
Design #3
<abbr class="fn" title="John Public">John</abbr>
will be our speaker. Mr. Public will talk about ...
This third approach completely sidesteps the need for the "value"
subproperty.
Which design is best practice? What are the pros and cons to each
design?
/Roger
-----Original Message-----
From: microformats-discuss-bounces at microformats.org
[mailto:microformats-discuss-bounces at microformats.org] On Behalf Of
Andy Mabbett
Sent: Tuesday, October 31, 2006 4:34 PM
To: Microformats Discuss
Subject: Re: [uf-discuss] Best practice for the "value" subproperty
In message
<B8415163A689094689542C617ECA0366011FF14D at IMCSRV5.MITRE.ORG>,
"Costello, Roger L." <costello at mitre.org> writes
><span class="fn">
> <span class="value">John </span>
> will be our speaker. Mr.
> <span class="value">Public</span>
></span> will talk about ...
I would mark that up as:
<abbr class="fn" title="John Public">John</abbr>
will be our speaker. Mr. Public will talk about ...
--
Andy Mabbett
Say "NO!" to compulsory ID Cards:
<http://www.no2id.net/>
Free Our Data: <http://www.freeourdata.org.uk>
_______________________________________________
microformats-discuss mailing list
microformats-discuss at microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss
More information about the microformats-discuss
mailing list