I am trying to implement microData schema.org format in my xhtml template. Since I am using xhtml templates, I needed to add
<div itemprop="reviews" itemscope="itemscope" itemtype="http://schema.org/Review">
instead:
<div itemprop="reviews" itemscope itemtype="http://schema.org/Review">
otherwise my template will not be parsed. I found a solution here
My markup is as follows:
<div itemscope="itemscope" itemtype="http://schema.org/Place"> <div itemprop="aggregateRating" itemscope="itemscope" itemtype="http://schema.org/AggregateRating"> <span itemprop="ratingValue">#{company.meanRating}</span> stars - based on <span itemprop="reviewCount">#{company.confirmedReviewCount}</span> reviews </div> <ui:repeat var="review" value="#{company.reverseConfirmedReviews}"> <div itemprop="reviews" itemscope="itemscope" itemtype="http://schema.org/Review"> <span itemprop="name">Not a happy camper</span> - by <span itemprop="author">#{review.reviewer.firstName}</span>, <div itemprop="reviewRating" itemscope="itemscope" itemtype="http://schema.org/Rating"> <span itemprop="ratingValue">1</span>/ <span itemprop="bestRating">5</span>stars </div> <span itemprop="description">#{review.text} </span> </div> </ui:repeat> </div>
When testing this at http://www.google.com/webmasters/tools/richsnippets I don't get any stars back or aggregate review counter
What am I doing wrong here?
jakob source share