[uf-discuss] hreview using include pattern

Martin McEvoy martin at weborganics.co.uk
Mon Oct 8 16:00:18 PDT 2007


On Mon, 2007-10-08 at 12:59 -0700, Brian Miller wrote:
> I'm attempting to implement hreview on our directory of free software
> downloads.  The page is structured with the software information (item)
> separate from the listing of the reviews. The specs say that you should
> wrap the product information and the 1st review in hreview and then
> include the item information in each subsequent review using include
> pattern. My page separates the item information from the first review so
> I'm unable to wrap both in an hreview class. I assume you can specify
> the item info and then use include pattern to include it in the first
> and subsequent reviews. Although I'm wondering if I need to wrap the
> item information in hreview or just the reviews themselves.

I think the class include pattern is only implemented in vcards at least
that is the only time I have ever seen it used, and I think the only way
parsers such as tails support it at the moment.
I know hReview since 0.3 has had the support for class includes but how
to go about that is a little obscure? can it be used anywhere in the
document or does it have to be wrapped in the reviewers vcard?


>  
> Simplified html:
>  
> <!--Item Information-->
> <div class="hreview">
>     <div class="item" id="review-item">
>             <h1 class="title fn">AROUNDMe</h1>
>             <a class="internal url button"
> href="http://www.barnraiser.org/"> Get It Here </a>
>     </div>
> </div>
> <!--Review 1-->
> <div class="hreview">
>     <object data="#review-item" class="include" >
>     </object>
>     <dl class="vertical-data">
>         <dt>Rating:</dt>
>         <dd><abbr class="rating" title="3.0"><img
> src="/images/star_three.gif" width="54" height="15" alt="Star Rating -
> 3" /></abbr></dd>
>     </dl>
>     <p class="description">test Final</p>
>     <p><abbr class="dtreviewed" title="2007-03-10">October 03,
> 2007</abbr> - <span class="reviewer">bmiller_test12</span></p>
> </div>
> <!--Review 2-->
> <div class="hreview">
>     <object data="#review-item" class="include" >
>     </object>
>     <dl class="vertical-data">
>         <dt>Rating:</dt>
>         <dd><abbr class="rating" title="2.0"><img
> src="/images/star_two.gif" width="54" height="15" alt="Star Rating - 2"
> /></abbr></dd>
>     </dl>
>     <p><abbr class="dtreviewed" title="2007-10-09">September 10,
> 2007</abbr> - <span class="reviewer">bmiller_test12</span></p>
> </div>
>  
> Full html example:
>  
> http://dev.techsoup.org/learningcenter/Downloads/Database/page7400.cfm
>  
> Also, are there any tools I can use to test or validate this?

Thanks

Martin
>  
> Brian Miller
> Web Application Developer
> CompuMentor, home of TechSoup.org
> 415-633-9463 office
> 415-676-1458 mobile
> 415-633-9400 fax
> brian at compumentor.org <mailto:brian at compumentor.org> 
> 
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss



More information about the microformats-discuss mailing list