<xsl:for-each select="//blabla">
<xsl:variable name="blabla" select="."/>
<xsl:for-each select="//bla[@id=$blabla/@id]">
...
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="//blabla">
<xsl:variable name="blabla" select="."/>
<xsl:for-each select="//bla[@id=$blabla/@id]">
...
</xsl:for-each>
</xsl:for-each>