This has been answered within the last day or so, and is probably in the faq
<xsl:variable name="originaldoc" select="/" />
<xsl:for-each select="$external-merge-xml...
...
<xsl:for-each select = "$originaldoc/MainSrc
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list