[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

how to return from exsl:node-set

Subject: how to return from exsl:node-set
From: Dusan Zatkovsky <zatkovsky@xxxxxxxxxxxx>
Date: Thu, 9 Sep 2004 10:21:00 +0200
how to exsl
Hi all.

I have one question about exsl:node-set.
Here is my example:

data.xml
<document>
	<data>
		<id>1</id>
	</data>
<document>


style.xsl
<xslo:stylesheet ....>
...

	<xslo:variable name="stored">
		<grp>...</grp>
		<grp>...</grp>
		<grp>...</grp>
	</xslo:variable>
...


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

		<!--
			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)
		-->

	</xslo:for-each>

</xslo:stylesheet ...>



Thank you.


-- 

Dusan Zatkovsky

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.