T
The alMIGHTY N
Hi, I'm trying to create essentially an ordered list of items.
<games>
<game>
<title>Legend of Zelda: Twilight Princess</title>
<system>Nintendo Wii</system>
</game>
<game>
<title>Metal Gear Solid 4</title>
<system>Sony Playstation 3</system>
</game>
<game>
<title>Elite Beat Agents</title>
<system>Nintendo DS</system>
</game>
<game>
<title>Gears of War</title>
<system>Microsoft Xbox 360</system>
</game>
<game>
<title>Grand Theft Auto: Vice City Stories</title>
<system>Sony PSP</system>
</game>
</games>
I want to produce:
<ul>
<li>1 - Legend of Zelda: Twilight Princess</li>
<li>2 - Metal Gear Solid 4</li>
<li>3 - Elite Beat Agents</li>
<li>4 - Gears of War</li>
<li>5 - Grand Theft Auto: Vice City Stories</li>
</ul>
I know I can just use <ol> instead of <ul> but I'm trying to learn how
to do it functionally through XSL instead.
Thanks,
Nathaniel
<games>
<game>
<title>Legend of Zelda: Twilight Princess</title>
<system>Nintendo Wii</system>
</game>
<game>
<title>Metal Gear Solid 4</title>
<system>Sony Playstation 3</system>
</game>
<game>
<title>Elite Beat Agents</title>
<system>Nintendo DS</system>
</game>
<game>
<title>Gears of War</title>
<system>Microsoft Xbox 360</system>
</game>
<game>
<title>Grand Theft Auto: Vice City Stories</title>
<system>Sony PSP</system>
</game>
</games>
I want to produce:
<ul>
<li>1 - Legend of Zelda: Twilight Princess</li>
<li>2 - Metal Gear Solid 4</li>
<li>3 - Elite Beat Agents</li>
<li>4 - Gears of War</li>
<li>5 - Grand Theft Auto: Vice City Stories</li>
</ul>
I know I can just use <ol> instead of <ul> but I'm trying to learn how
to do it functionally through XSL instead.
Thanks,
Nathaniel