[uf-discuss] Best practice for the "value" subproperty

Costello, Roger L. costello at mitre.org
Thu Nov 2 11:49:19 PST 2006

Thanks David.

I just found an example in Brian Suda's book which shows microformat
markup adding data to HTML text.  For example, consider this HTML text:

     My home is a big, brown house...

The creator of this HTML text would like to add geo data, but has no
interest in displaying lat/lon decimal values.  However, making geo
information available to aggregators is of great interest.

Without impacting the HTML presentation geo data can be added:

<abbr class="geo" title="37.408183, -122.13855"> My home</abbr> is a
big, brown house...

The value of title is a composite value - lat, lon 



-----Original Message-----
From: microformats-discuss-bounces at microformats.org
[mailto:microformats-discuss-bounces at microformats.org] On Behalf Of
David Osolkowski
Sent: Thursday, November 02, 2006 11:44 AM
To: Microformats Discuss
Subject: Re: [uf-discuss] Best practice for the "value" subproperty

On 11/2/06, Costello, Roger L. <costello at mitre.org> wrote:
> A thought occurred to me with regards to the Design #3 approach.  Can
> add information that didn't exist in the original HTML text?
> Suppose that this is the original HTML text:
>      John will be our speaker.  Mr. Public will talk about ...
> And here is how I mark it up (using Design #3):
> <abbr class="fn" title="Mr. John Q. Public, Esq.">John</abbr>
> will be our speaker.  Mr. Public will talk about ...
> Notice that I added information that was not in the original HTML
> namely, his middle initial and his suffix.

Unfortunately, I don't think this is valid.  The real required field
is n (name), but hCard uses something called "implied n optimization"
[1] to derive n from fn (formatted name) if only fn is given.  This
simplifies the common case of "given-name family-name".  However, this
only works if fn is fairly simple.  If you want to include prefixes,
middle initials, suffixes, etc. then you have to fully specify the n
construct yourself.

- David

[1] http://microformats.org/wiki/hcard#Implied_.22n.22_Optimization
microformats-discuss mailing list
microformats-discuss at microformats.org

More information about the microformats-discuss mailing list