<!-- If it is directly included in a div, we have to add Opale's text markups -->
<xsl:whentest="parent::*[name() = 'div'] and not(parent::*[@data-hdoc-type = 'gapText']) and not(parent::*[@data-hdoc-type = 'label']) and not(parent::*[@data-hdoc-type = 'target'])">
<xsl:whentest="(parent::*[name() = 'div'] or parent::*[name() = 'span']) and not(parent::*[@data-hdoc-type = 'gapText']) and not(parent::*[@data-hdoc-type = 'label']) and not(parent::*[@data-hdoc-type = 'target'])">