
Make sure you have Ratings setting enabled in your list/ library.
As the rating field is not shown properly;
Add below link for XSLT;
<xsl:include href=”/_layouts/15/xsl/blog.xsl”/>
<xsl:include href=”/_layouts/15/xsl/internal.xsl”/>
<xsl:include href=”/_layouts/15/xsl/fldtypes_Ratings.xsl”/>
Add below code for Rating;
<xsl:call-template name=”emit_RatingsInitialization”/>
<xsl:apply-templates select=”$Fields[@Name=’AverageRating’]” mode=”PrintField”>
<xsl:with-param name=”thisNode” select=”$thisNode”/>
<xsl:with-param name=”Position” select=”$Position”/>
</xsl:apply-templates>