Paul --
General XML questions are better addressed to the Mulberry XSL List
(http://www.mulberrytech.com/xsl/xsl-list/index.html).
Generally, you assign the current document to a variable and then use
the variable to switch back:
<xsl:template match="/">
<xsl:variable name="current" select="."/>
<xsl:variable name="otherdoc" select="document('newdoc.foo')"/>
<xsl:apply-templates select="$otherdoc/somenode" />
<xsl:apply-templates select="./anothernode" />
</xsl:template>
Gary
"Ackley, Paul" wrote:
>
> This is more of a general xsl question. When I use the the xsl:document
> element to "read in" another xml file my current node is then changed to the
> node I am reading from the secondary xml document (the one opened up and
> read with the xsl:document element). I expected the node to be the node of
> XML document that I am running XSLT (Xalan) against. I hope this makes
> sense...
>
> Is there a way to get the node back to the original XML document?
>
> ____________________ ____
> Paul Ackley
> Qwest Communications, Inc
> Phone: 614-215-2492
> Fax: 614-798-6777