View Single Post
  #6 (permalink)  
Old June 1st, 2007, 06:27 AM
Akriti Akriti is offline
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

actually we are trying to display tree hierarchy using xml and xsl .
i want to have xsl which renders the xml i have already mentioned.also we need img icons in front of groups on click of which we want to call another html page.Those attributes were defined to enable the expand and collapse functionality provided as functions in js.
If anybody can sujjest the XSL so that things work out the right way .
XML :
<tree>
<group id="GRP2">
    <name>GRP2</name>
    <plus>images/plus.gif</plus>
    <minus>images/minus.gif</minus>
    <contents>
        <group id="GRP3">
        <name>GRP3</name>
        <plus>images/plus.gif</plus>
        <minus>images/minus.gif</minus>
        <contents>
            <group id="GRP4">
            <name>GRP4</name>
            <plus>images/plus.gif</plus>
            <minus>images/minus.gif</minus>
            <contents>
                <group id="GRP21">
                <name>GRP21</name>
                <plus>images/plus.gif</plus>
                <minus>images/minus.gif</minus>
                <contents></contents>
                </group>
                <group id="GRP69">
                <name>GRP69</name>
                <plus>images/plus.gif</plus>
                <minus>images/minus.gif</minus>
                <contents></contents>
                </group>
            </contents>
            </group>
            <group id="GRP68">
            <name>GRP68</name>
            <plus>images/plus.gif</plus>
            <minus>images/minus.gif</minus>
            <contents></contents>
            </group>
        </contents>
        </group>
        <group id="JJJ">
        <name>JJJ</name>
        <plus>images/plus.gif</plus>
        <minus>images/minus.gif</minus>
        <contents></contents>
        </group>
    </contents>
    </group>
</tree>







Reply With Quote