<xsl:for-each select="$work-package/deliverable[@file]">
<xsl:apply-templates select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable">
<xsl:for-each select="$work-package/deliverable[@file]">
<xsl:apply-templates select="document(concat('../xml/deliverables/',@file,'.xml'))/deliverable">