markSaunders
Programmer
Any ideas on resources that would lead me to the answer to the following:
I have an xml file (which I control so can add attributes etc. as necessary)
Thus, and example of the full structure indicated above would be:
As you've probably guessed this is for a left nav! but I need to offer upto three levels where the page ID will drive the transformation (I can certainly access the page ID and am assuming I can use a parameter in the XLST), sucj that:
=> where page ID = 6
=> where page ID = 12
=> where page ID = 2
Any help would be splendid!!!
Thanks.
M
Mark Saunders
I have an xml file (which I control so can add attributes etc. as necessary)
Code:
<page id="1" parent=0">
<page id="2" parent=0">
<page id="3" parent=2">
<page id="4" parent=2">
<page id="5" parent=4">
<page id="6" parent=4">
<page id="7" parent=4">
<page id="8" parent=2">
<page id="9" parent=2">
<page id="10" parent=0">
<page id="11" parent=0">
<page id="12" parent=11">
<page id="13" parent=11">
<page id="14" parent=0">
<page id="15" parent=0">
Thus, and example of the full structure indicated above would be:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
As you've probably guessed this is for a left nav! but I need to offer upto three levels where the page ID will drive the transformation (I can certainly access the page ID and am assuming I can use a parameter in the XLST), sucj that:
=> where page ID = 6
Code:
1
2
3
4
5
*6
7
10
11
14
15
=> where page ID = 12
Code:
1
2
10
11
*12
13
14
15
=> where page ID = 2
Code:
*1
2
10
11
14
15
Any help would be splendid!!!
Thanks.
M
Mark Saunders