Dyanamic Array creation in XSL from xml.....need help ASAP
NEED UR EXPERT HELP ASAP
Heres my problem:
I want a dynamic tree structure in my frameset. Next XSL is working OK but the values in array are hardcoded. I want the xsl should be wirte in a way that the hardcoded values in array will be read dynamically from the above mentioned xml files.
So, that my javascript works fine with the dynamic values.
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="treeview1.xsl"?>
<tree>
<content>
<section>Retirement Checkup</section>
<subsection>
<subsectiontext>Link 1</subsectiontext>
<subsectiontext>Link 2</subsectiontext>
<subsectiontext>Link 3</subsectiontext>
<subsectiontext>Link 4</subsectiontext>
<subsectiontext>Link 5</subsectiontext>
</subsection>
</content>
<content>
<section>Financial Strategy</section>
<subsection>
<subsectiontext>Link 6</subsectiontext>
<subsectiontext>Link 7</subsectiontext>
<subsectiontext>Link 8</subsectiontext>
<subsectiontext>Link 9</subsectiontext>
</subsection>
</content>
</tree>
<html>
<head>
<title>About an Expanding and Collapsing ToC Menu</title>
<script language="JavaScript">
var tocTab = new Array();
tocTab[0] = new Array ("0", " ", "");
tocTab[1] = new Array ("1", "Retirement Checkup", "body.html");
tocTab[2] = new Array ("1.1", "Checkup A", "body1.html");
tocTab[3] = new Array ("1.2", "Checkup B", "body2.html");
tocTab[8] = new Array ("2", "Your Financial Strategy", "body.html");
tocTab[9] = new Array ("2.1", "Overview", "body1.html");
tocTab[10] = new Array ("2.2", "Retirement", "body2.html");
var nCols = 2;
</script>
<script language="JavaScript" src="tocParas.js"></script>
<script language="JavaScript" src="displayToc.js"></script>
</head>
<frameset cols="200,*" border=0 onload="reDisplay('0',true);">
<frame src="blank.htm" name="toc">
<frame src="body1.html" name="content">
</frameset>
Please send me ASAP and post it in forum.

