[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how to return from exsl:node-set
On Thursday 09 of September 2004 11:26, Oleg Tkachenko wrote: > 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? Yes I mean. Sorry :) > > > <!-- > > 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 Hmm, great idea. But I have one question: what will $root represents? It will be something like 'link' to root node, or it will store copy of root document in memory? Thank ypou -- Dusan Zatkovsky
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|