[uf-discuss] hCalendar / hCard implementation, check please

brian suda brian.suda at gmail.com
Tue Jul 4 08:50:32 PDT 2006

There are a few minor issues.

1) you have dtstart in two places, dtstart can only exist once, so the
second portion would be ignored. To correct this, you can simply do away
with the first dtstart inside the h2, and on the second one you can use
the full date-time:  <abbr class="dtstart"

2) The second issue is that 'status' has an enumerated list of values:
      statvalue  = "TENTATIVE"           ;Indicates event is tentative.
                / "CONFIRMED"           ;Indicates event is definite.
                / "CANCELLED"           ;Indicates event was cancelled.
        ;Status values for a "VEVENT"

I would suggest that you either do way with class="status", or roll the
"open to the public..." into the description.

My only other suggestion (and it is not super important in this
instance) would be to also mark-up the location with an hCard. This way
people could extract the building data easily as well. You would have to
place additional information in to the location, similar to this:

<dd class="location vcard">
<div class="fn org">Cornell University</div>
<div class="adr">
<span class="extended-address">Myron Taylor Hall</span>
<span class="street-address"></span>
<span class="locality"></span>
<span class="region"></span>
<span class="country-name"></span>

This can easily be extracted as a vCard and degrades perfectly to just
plain text for the unstructured LOCATION in hCalendar.

I hope this helps,

Lukasz Lysakowski wrote:
> Hello.
> I recently stumbled upon the microformats standards and found the idea
> terrific.  I am currently developing a web project for a higher-ed
> department and I would like to implement the microformat standards into my
> current development.  I have setup an events result-description page using
> the hcalendar / hcard formats.  I want to make sure my implementation is
> correct so any feedback will be greatly appreciated.
> Thank you > lukasz
> <div id="event-description" class="vevent">
>                 <h2><abbr class="dtstart" title="20060230">Thursday,
> February 30</abbr></h2>
> 	    <span class="time"><abbr class="dtstart"
> title="T1200">12:00PM</abbr></span>
> 	     <h4 class="summary">Public Interest Career Symposium</h4>
>         	     <p class="description">Lorem ipsum dolor sit amet. </p>
>         <dl>
>                 <dt>Location:</dt>
> 		<dd class="location">Myron Taylor Hall</dd>
>                 <dt>Admission:</dt>
> 		<dd class="status">Open to the Public, Faculty and Students</dd>
>                 <dt>Website:</dt>
> 		<dd class="url">http://www.cornell.edu/</dd>
>                 <dt>Contact Info::</dt>
> 		<dd class="vcard"><span class="fn">Leslie Intermann</span><br />
>                                                            <span
> class="tel">255-0864</span><br
> />
>                                                             <a
> class="email"
> href="ll234 at cornell.edu"></a>
> 		</dd>
>         </dl>
> </div>
> lukasz lysakowski
> web developer
> iws - cornell university
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss

More information about the microformats-discuss mailing list