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