[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: 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
exsl:node-set($somevariable).

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
variable:
 <xsl:variable name="main" select="/"/>

J.Pietschmann


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member