xsl-list
[Top] [All Lists]

finding nodes

2003-03-15 08:13:46
hi all,

if have a xml-document with the following structure (with nested page-nodes):

<site>
        <pages>
        
                <page id="SECTION_1">

                        <page id="SUB_SECTION_1_1">

                                <page id="SUB_SUB_SECTION_1_1_1">

                                </page>

                        </page>

                        <page id="SUB_SECTION_1_2">

                                ....

                        </page>
                </page>

                <page id="SECTION_2">

                        ....
                
                </page>

                


        </pages>
</site>


in my xsl-document I have the following parameter:
(later given via GET-request-params/Cocoon)

<xsl:param name="goto_page" 
select="SECTION_1/SUB_SECTION_1_1/SUB_SUB_SECTION_1_1_1"/>

an now I want to enter the node specified by the path given in $goto_page. this 
path 
has no restriction in depth.

i would prefer a solution without splitting the path if there is any? 

can anybody help me or does anybody know a howto-page or anything that could 
help me ?
thanks

cheers
jm

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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