juls_pro_37: XSLT 1.0 count, remove

Beitrag lesen

<xsl:template match="Item/ItemDeliveryInformation">
  <xsl:if test="count(preceding-sibling::ItemDeliveryInformation|following-sibling::ItemDeliveryInformation)=0 or PackingSlipId/text() != 'ohne Lieferschein'">
    <xsl:copy><xsl:apply-templates select="@* | node()"/></xsl:copy>
  </xsl:if>
</xsl:template>