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

Brian Suda brian.suda at gmail.com
Wed Mar 5 02:17:39 PST 2008


2008/3/5, Toby A Inkster <mail at tobyinkster.co.uk>:
> That would be contrary to Tantek's guidelines on the Wiki:

--- correct, then we should further discuss this on the dev-list and
correct the wiki as needed.

>  | If the element is a table data cell <td>, then:
>  |
>  |   1.  parse its "headers" attribute as a space separated set of local IDs
>  |
>  |   2.  find the <td> and <th> elements referenced by those IDs (call them
>  |       header cells) and consider them part of the element being parsed
>  |       as follows:
>  |
>  |         1. Treat the header cells as children of the element, ordered by
>  |            the order of ids in its "headers" attribute, immediately
>  |            following the last child node (text or element) or the
>  |            element. (The basic idea is that the content from those
>  |            header cells is used to construct the VEVENT, but secondary
>  |            to (AFTER) the content in the data cell itself, so that the
>  |            data cell can customize/override part of the data in the
>  |            header, e.g. if the header cell included both start time and
>  |            location, and the event was being held at a different
>  |            location).
>  |
>  |         2. Parse the "axis" attribute of a header cell as a comma-
>  |            separated list of categories. These categories must be used
>  |            in addition to (and before) any class names on that header
>  |            cell for determining whether it is a property of the VEVENT.



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


More information about the microformats-discuss mailing list