Re: [xsl] how to return from exsl:node-set

Subject: Re: [xsl] how to return from exsl:node-set
From: Oleg Tkachenko <oleg@xxxxxxxxxxxxx>
Date: Thu, 09 Sep 2004 11:26:33 +0200
Dusan Zatkovsky wrote:

	<xslo:for-each select="exsl:node-set($stored)/grp">
		<!-- i will store index of current grp -->
		<xslo:variable name="pos" select="position"/>

btw, did you mean position() here?


		<!--
			NOW I want to have access to data.xml (/document/data/id)
			but i am still in $stored variable stored locally in xsl file
			because exsl:node-set in for-each statement.
			How to acces data from xml file without using
			document(data.xml) function?
			(I can't use it)
		-->

Store original source root node in a global variable:


<xsl:variable name="root" select="/"/>

Then use $root/document/data/id

--
Oleg Tkachenko
http://blog.tkachenko.com
Multiconn Technologies, Israel

Current Thread