<xsl:template match=" row[ @role = ’hline’ ]" />
<xsl:template match=" row[
following-sibling::*[1][ self::row[@role = ’hline’] ]
] ">
<xsl:copy>
<xsl:attribute name="rowsep">
<xsl:text>1</xsl:text>
</xsl:attribute>
<xsl:apply-templates select="*|@*|text()|comment()" />
</xsl:copy>
</xsl:template>
-_-_-