Rather than using for-each
, just pull out the bits you need one by one:
<Dates>
<DocumentIssueDate>
<xsl:value-of select="s0:E2EDT13001GRP[
userCSharp:LogicalEq(s0:E2EDT13001/s0:QUALF, '015')]
/s0:E2EDT13001/s0:NTANF" />
</DocumentIssueDate>
<ScheduledDeliveryDate>
<xsl:value-of select="s0:E2EDT13001GRP[
userCSharp:LogicalEq(s0:E2EDT13001/s0:QUALF, '007')]
/s0:E2EDT13001/s0:NTANF" />
</ScheduledDeliveryDate>
<!-- etc. -->
</Dates>