You can create aggregates with document()
This includes additional documents as inputs to the transformation.
The document() function can have one or two arguments (see next slide).
Example:
<xsl:template match="include"> <xsl:apply-templates select="document(@href)"/> </xsl:template>