xsl-list
[Top] [All Lists]

Re: root reference changes?

2004-06-17 13:06:03
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



<Prev in Thread] Current Thread [Next in Thread>