Timely use of object include (Re: [uf-dev] Abomination or clever
work around? You decide (reference via object))
Tantek Ç elik
tantek at cs.stanford.edu
Wed Feb 22 14:10:02 PST 2006
On 2/22/06 1:41 PM, "John Panzer" <jpanzer at aol.net> wrote:
> I'm wondering whether the technique in
> http://microformats.org/wiki/resume-brainstorming#hCard_reference_via_object
> would help answer one of the issues we've been thinking about at AOL
> when combining reviews with existing structures such as blog entries.
Precisely John.
This is exactly why we have generalized that technique to be a pattern for
use in other microformats.
http://microformats.org/wiki/include-pattern
> For concreteness, suppose I have an hAtom entry with two reviews in it;
Yes.
> they share the same "dtreviewed". In this case it's not possible to
> merge both reviews together and just use class="dtreviewed published".
Right.
> More generally, consider a page with an existing "publish date"
> somewhere in a standard location, which contains a collection of reviews
> all published together.
>
> Would the following be abusive/unexpected? Or given
> hCard_reference_via_object, is it a reasonable thing to want to do?
>
> <div class="entry">
> <abbr class="published" id="ed"
> title="2006-02-22T15:00:00-07:00">Wednesday</abbr>
> <h3 class="headline">My day at the office...</h3>
> I spent the day struggling with computers... here's my quick take:
>
> <div class="hreview">
> <blockquote class="description"><p>
> <div class="item fn">Windows XP</div> gets <span
> class="rating">2</span>/5 stars for ease of use.
> </p></blockquote>
> <object data="#ed" class="dtreviewed"></object>
> </div>
>
> <div class="hreview">
> <blockquote class="description"><p>
> <div class="item fn">Windows Server 2003</div> gets <span
> class="rating">0</span>/5 stars due to failure to install.
> </p></blockquote>
> <object data="#ed" class="dtreviewed"></object>
> </div>
>
> </div>
VERY close.
Here is the corrected markup (note, no need to use blockquote for the
reviews since the author *is* the person writing the reviews, rather than
quoting someone else's reviews).
<div class="hentry">
<abbr class="published" id="ed"
title="2006-02-22T15:00:00-07:00">Wednesday</abbr>
<h3 class="entry-title">My day at the office...</h3>
I spent the day struggling with computers... here's my quick take:
<div class="hreview">
<div class="description"><p class="item">
<span class="fn">Windows XP</span> gets <span
class="rating">2</span>/5 stars for ease of use.
</p></div>
<object data="#ed" class="include"></object>
</div>
<div class="hreview">
<div class="description"><p class="item">
<span class="fn">Windows Server 2003</span> gets <span
class="rating worst">0</span>/5 stars due to failure to install.
</p></div>
<object data="#ed" class="include"></object>
</div>
</div>
Thanks,
Tantek
More information about the microformats-dev
mailing list