[uf-discuss] Massive use of hCard - need validation and discussion

Tantek Ç elik tantek at cs.stanford.edu
Fri Feb 10 11:25:41 PST 2006

On 2/10/06 11:01 AM, "B.K. DeLong" <bkdelong at pobox.com> wrote:

> So, being the OCD developer I am,

join the club. :)

> I marked up a recent blog posting
> with hCard - quite a lot of hCard - and need some assistance checking
> if it validates. Ignore the political content and please help me
> examine the semantics. I'm curious if each organization I reference
> can be marked up with class="vcard", class="org", without further context.
> Thanks in advance.
> http://www.brain-stream.com/blog/archives/001906.html
> <p>I think <a 
> href="http://www.washingtonpost.com/wp-dyn/content/blog/2006/02/10/BL200602100
> 0760.html">this 
> article</a> by <span class="vcard"><span class="org">Washington
> Post</span> <span class="role">reporter</span> <span class="fn">Dan
> Froomkin</span></span> sums up a lot of the issues right now. You

Looks good.

> have <span class="vcard"><span class="n"><span
> class="given-name">Lewis</span> "<span
> class="nickname">Scooter</span>" <span
> class="family-name">Libby</span></span> - <span class="role"><span
> class="vcard"><span class="title">Vice President</span> <span
> class="n"><span class="nickname">Dick</span> <span
> class="family-name">Cheney</span></span></span>'s ex-<span
> class="title">Chief of Staff</span></span></span>

Missing the fn for Cheney.  Probably want it on the same element as the

Also, I'm not sure of the use of "role" there.  I believe "role" is supposed
to be a very generic business category sort of thing.

RFC2426 says:

3.5.2 ROLE Type Definition

   To: ietf-mime-directory at imc.org

   Subject: Registration of text/directory MIME type ROLE

   Type name: ROLE

   Type purpose: To specify information concerning the role, occupation,
   or business category of the object the vCard represents.

   Type encoding: 8bit

   Type value: A single text value.

   Type special notes: This type is based on the X.520 Business Category
   explanatory attribute. This property is included as an organizational
   type to avoid confusion with the semantics of the TITLE type and
   incorrect usage of that type when the semantics of this type is

   Type example:


> testifying that he
> was told by his bosses that he could release information about <span
> class="vcard"><span class="fn">Valerie Plame</span> being a <span
> class="role"><acronym title="Central Intelligence Agency
> ">CIA</acronym> agent</span></span>. </p>

The role here should be "agent".  The org should be "CIA" (with abbr title).
And she has no title since she was undercover. ;)

> <p>It also touches upon the Hurricane Katrina scandal which former
> <span class="vcard"><span class="title"><span class="org"><acronym
> title="Federal Emergency Management Agency
> ">FEMA</acronym></span> <span class="role">Director</span></span>
> <span class="fn">Mike Brown</span></span>

Again, because he is no longer has that title and org (i.e. "former"), I
don't think it is appropriate to mark it up as such, because by doing so,
you are claiming it to be a currently (as of your blog post date) true
statement.  So no "org" nor "title" for Brown.

> is testifying about in
> Congress today stating that both the Department of Homeland Security
> and the White House knew the night of the levee breaches and not the
> day after as they claimed. And the big one - the <acronym
> title="National Security Agency
> ">NSA</acronym>'s

You could do:

<span class="vcard">
<acronym class="fn org" title="National Security Agency">NSA</acronym>

> domestic wiretapping program which, according to
> reports, the White House

<span class="vcard"><span class="fn org">White House</span></span>

> has rebriefed the National Security
> subcommittee on with some alleged change in support.</p>

Consider every instance of a person or organization as something that should
be marked up with hCard, just as you markup every list item with <li> (even
inline lists), every emphasized text with <em> and <strong>, etc.



More information about the microformats-discuss mailing list