Nachtrag: die xsl:if-Abfrage ist unnötig, das passiert ja schon im Item[…]-Prädikat. Also reicht:
<xsl:template match="Item[not(ItemDeliveryInformation)]">
<Item>
<xsl:copy-of select="LineNum"/>
<xsl:copy-of select="TotalQuantity"/>
<ItemDeliveryInformation>
<LineNumDeliveryNote>0</LineNumDeliveryNote>
<PackingSlipId>
<xsl:value-of select="/SALESINVOICE/HeaderInformation/InvoiceNumber"/>
</PackingSlipId>
<DeliveryDate>
<xsl:value-of select="/SALESINVOICE/HeaderInformation/InvoiceDate"/>
</DeliveryDate>
<DeliveredQuantity>
<xsl:value-of select="TotalQuantity"/>
</DeliveredQuantity>
</ItemDeliveryInformation>
</Item>
</xsl:template>
Grüße,
Thomas