xml Sebenza评论与Schema

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Sebenza评论与Schema相关的知识,希望对你有一定的参考价值。

<div id="review-average">
    <mvt:if expr="g.Total_Reviews">
        <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
            <meta itemprop="ratingValue" content="&mvt:productrating:rating;" />
            Average Review for <strong>&mvt:product:name;</strong><br />
            <span class="review-stars">&mvt:productrating:stars;</span> | <span itemprop="reviewCount">&mvt:global:Total_Reviews;</span> Reviews<br />
            <a href="&mvt:global:sessionurl;Screen=WREVIEWS&Product_Code=&mvt:global:product_code;&Store_Code=&mvt:global:Store_Code;">Write an online review</a> and share your thoughts with others.<br />
            </div>
	<mvt:else>
		&mvt:product:name; has not been rated yet. <a href="&mvt:global:sessionurl;Screen=WREVIEWS&Product_Code=&mvt:global:product_code;&Store_Code=&mvt:global:Store_Code;">Write an online review</a> and share your thoughts with others.<br />
	</mvt:if>    
</div>
<mvt:if expr="l.settings:productreviews">
    <mvt:foreach iterator="reviews" array="productreviews">
        <div class="product-review" itemprop="review" itemscope itemtype="http://schema.org/Review">
            <span class="review-stars">&mvt:reviews:stars;</span> | <strong itemprop="name">&mvt:reviews:title;</strong><br />
            Reviewed by <span itemprop="author">&mvt:reviews:name;</span> | <meta itemprop="datePublished" content="&mvt:reviews:year;-&mvt:reviews:month;-&mvt:reviews:day;" />&mvt:reviews:month;/&mvt:reviews:day;/&mvt:reviews:year;<br />
            <div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
              <meta itemprop="worstRating" content="1" />
              <meta itemprop="ratingValue" content="&mvt:reviews:rating;" />
              <meta itemprop="bestRating" content="5" />
            </div>
            <p itemprop="description">&mvt:reviews:review;</p>
        </div>
    </mvt:foreach>
</mvt:if>
<mvt:if expr="g.ReviewCount GE g.ReviewPagination">
		<p align="right"><a href="&mvt:global:sessionurl;Screen=REVIEWS&Product_Code=&mvt:global:product_code;&Store_Code=&mvt:global:Store_Code;">View all &mvt:global:Total_Reviews; reviews</a></p>
	</mvt:if>

以上是关于xml Sebenza评论与Schema的主要内容,如果未能解决你的问题,请参考以下文章

xml Miva - 使用Sebenza模板模块进行URI管理

xml与xml schema命名空间学习

DTD与XML Schema

schema.xml

XML-Schema验证

C#实体类生成XML与XML Schema文档