<xsl:if test="not(current()/@attributed_to = preceding::quote/@attributed_to)">
inside an <xsl:sort> element to weed out duplicates. I haven't tried it myself, but I saw it in my notes from a class.
Sponsored By: