[uf-discuss] best practices to represent "person working at"

Brian Suda brian.suda at gmail.com
Thu Apr 22 16:36:10 PDT 2010


On Thu, Apr 22, 2010 at 8:44 PM, Arnaud Sahuguet <sahuguet at google.com> wrote:
> say I want to represent a doctor working at a hospital.
> What's the preferred way to represent that?
>
> <div class="vcard">
>  <span class="fn">Perry Cox, MD</span>
>  <div class="org">Sacred Heart hospital</div>
>  <div class="adr">
>  <div class="street-address">1 Hospital Avenue</div>
>  <span class="locality">San Diego</span>,
>  <span class="region">CA</span>
>  <span class="postal-code">92101</span>
>  </div>
>  <div class="tel">619) 555-5020 x 1234</div>
> </div>

--- this certainly represents a person who has a job at a place called
"Sacred Heart Hospital" we don't know more about that entity. The
address is for the person, but it can be set to TYPE WORK so people
know this is the Doctor's work address.


> <div class="vcard">
>  <span class="fn">Perry Cox, MD</span>
>  <div class="card org"><a href="http://sacredheart.org"
> rel="group">Sacred Heart hospital</a></div>
>  <div class="adr">
>  <div class="street-address">1 Hospital Avenue</div>
>  <span class="locality">San Diego</span>,
>  <span class="region">CA</span>
>  <span class="postal-code">92101</span>
>  </div>
>  <div class="tel">619) 555-5020 x 1234</div>
> </div>
> But the use of rel-org assumes that the containing page represents Dr
> Perry Cox (representative hcard).

--- this isn't any different. To an hCard parse you'd get the same
result. Adding a class="card" won't do anything and rel="group" won't
get you anything connected to the representative hcard. Maybe i'm just
not following you.

Do you have an example page in mind?

-brian

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



More information about the microformats-discuss mailing list