xsl-list
[Top] [All Lists]

how to return from exsl:node-set

2004-09-09 01:21:00
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


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