Reordering Using XSL
Hello.
I have been searching extensively for about 12 hours and have not come across an example of a problem similar to mine. I hope someone here may be able to help me.
I have an XML file with a structure like this:
<listing>
|_<venuelist>
| |_<venue venueID="xxx">
| |_<venue venueID="yyy">
| |_ etc.
|_<eventlist>
| |_<event titleID="123" venueID="xxx">
| |_<event titleID="456" venueID="xxx">
| |_<event titleID="789" venueID="xxx">
| |_<event titleID="123" venueID="yyy">
| |_<event titleID="456" venueID="yyy">
| |_etc.
|_<titlelist>
| |_<title titleID="123">
| |_<title titleID="456">
| |_etc.
I expect you can guess what I'm after! I want to end up with:
<div class="listing">
<div class="program">
<div class="venue">xxx</div>
<ul class="event">
<li>123</li>
<li>456</li>
<li>789</li>
</ul>
<div class="title>123 details</div>
<div class="title>456 details</div>
<div class="title>789 details</div>
</div>
</div>
etc.
I would be most grateful for any assistance.
Thank you.
|