[XSL-LIST Mailing List Archive Home]
Re: [xsl] root reference changes?
Subject: Re: [xsl] root reference changes?|
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 17 Jun 2004 22:06:03 +0200
Marcus B. Irven wrote:
I'm using <xsl:for-each> to iterate over a node set created by
Inside the for-each I want to access the main document but / now seems to
refer to the root
of the node-set.
That's how it is supposed to work.
How do I access the main document? I'm using xalan-j.
Save the the main document into a variable, perhaps a global
<xsl:variable name="main" select="/"/>