[uf-discuss] Re: hCalendar for events in a table format

Brian Suda brian.suda at gmail.com
Tue Mar 4 15:16:41 PST 2008


2008/3/4, Toby A Inkster <mail at tobyinkster.co.uk>:

>  <table>
>    <thead>
>      <tr>
>        <th id="id_fn" axis="fn">Full name</th>
>        <th id="id_role" axis="role">Role</th>
>        <th id="id_adr"><span class="locality">London</span> Address</th>
>      </tr>
>    </thead>
>    <tbody>
>      <tr class="vcard">
>        <td headers="id_fn">Elizabeth Windsor</td>
>        <td headers="id_role">Queen</td>
>        <td headers="id_adr" class="adr">
>          <span class="street-address">Buckingham Palace</span>
>        </td>
>      </tr>

--- i haven't tested your example, but X2V does support the header/id.
There are two might issues with the example mark-up. The
headers="id_fn" is a sort of call-back to the item with that ID. X2V
then takes the children of that ID and looks for any matching
properties.

So your example of:
        <th id="id_fn" axis="fn">Full name</th>
would need to become:
        <th id="id_fn"><span class="fn">Full name</span></th>
Axis is not used and the class="fn" needs to be a child of the id
being referenced.

To see a working example, you can visit:
http://www.sixnationskickoff.com/
it is hCalendar items, but it is pretty easy to figure out how to use
hCard instead.

-brian

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


More information about the microformats-discuss mailing list