<xsl:template match=" tr[ (normalize-space(.)=’’)
and
(parent::table[ @class=’tabular’ ])
] " >
<xsl:message terminate="no">
OK 1
</xsl:message>
<xsl:if test=" normalize-space(following-sibling::*) != ’’ ">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()|comment()" />
<xsl:message terminate="no">
OK 2
</xsl:message>
</xsl:copy>
</xsl:if>
</xsl:template>
-_-_-