You don't "delete" elements in XSLT, you merely refrain from copying them.
Write an identity template rule that copies elements:
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:copy>
Then add a "do-nothing" template rule for the elements you want to delete (ie, not copy).
<xsl:template match="owner"/>
<xsl:template match="company[count(*) = count(owner)]"/>
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference