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