xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor