<xsl:iftest="parent::tei:body/tei:p[1] = . or parent::bodyInclusion/tei:p[1] = . or ancestor::tei:floatingText[@type='description']//tei:p[1] = .">
<xsl:iftest="(parent::tei:body/tei:p[1] = . or parent::bodyInclusion/tei:p[1] = . or ancestor::tei:floatingText[@type='description']//tei:p[1] = .) and not(preceding-sibling::tei:p[contains(@rend, 'TEI_localpara')])">