<xsl:template match="weblogs"> <xsl:apply-templates select=" for $url in log/changesUrl return document($url)/item "/> </xsl:template>