hi all,
i use a minimalist MVC framework, where the PHP controler hands the DOM model to the XSLT view (c.f. okapi).
in order to build a navigation tree, i used nested sets in MYSQL. this way, i end up with a model XML that looks as follows:
<tree>
<node>
<name>root</name>
<depth>0</depth>
</node>
<node>
<name>TELEVISIONS</name>
<depth>1</depth>
</node>
<node>
<name>TUBE</name>
<depth>2</depth>
</node>
<node>
<name>LCD</name>
<depth>2</depth>
</node>
<node>
<name>PLASMA</name>
<depth>2</depth>
</node>
<node>
<name>PORTABLE ELECTRONICS</name>
<depth>1</depth>
</node>
<node>
<name>MP3 PLAYERS</name>
<depth>2</depth>
</node>
<node>
<name>FLASH</name>
<depth>3</depth>
</node>
<node>
<name>CD PLAYERS</name>
<depth>2</depth>
</node>
<node>
<name>2 WAY RADIOS</name>
<depth>2</depth>
</node>
</tree>
which represents the following structure
- root
- TELEVISIONS
- TUBE
- LCD
- PLASMA
- PORTABLE ELECTRONICS
- MP3 PLAYERS
- FLASH
- CD PLAYERS
- 2 WAY RADIOS
- MP3 PLAYERS
- TELEVISIONS
now, i can't seem to find a way to get from my XML to this html list using XSLT. does anyone have a suggestion?
cheers ... pierre
PS: this is the example tree from the nested sets tutorial on dev.mysql.com