hi all,
please can u help me, it's urgent and i'm working on it about 5 days without result
i have a xml file:
- <Menus>
- <UsersMenu>
<ID>1</ID>
<Text>Button1</Text>
- <UsersMenu>
<ID>2</ID>
<Text>B1I1</Text>
<link>template.aspx</link>
<parent>1</parent>
</UsersMenu>
- <UsersMenu>
<ID>3</ID>
<Text>B1I2</Text>
<parent>1</parent>
- <UsersMenu>
<ID>6</ID>
<Text>B1I2I1</Text>
<link>template.aspx</link>
<parent>3</parent>
</UsersMenu>
</UsersMenu>
- <UsersMenu>
<ID>4</ID>
<Text>B1I3</Text>
<parent>1</parent>
- <UsersMenu>
<ID>5</ID>
<Text>B1I3I1</Text>
<link>template.aspx</link>
<parent>4</parent>
</UsersMenu>
</UsersMenu>
</UsersMenu>
</Menus>
i want to pass it to xsl template to have this output:
<div class="arrowlistmenu">
<h3 class="menuheader expandable">Button1</h3>
<ul class="categoryitems">
<li><a href="template.aspx">B1I1</a></li>
<li><a href="template.aspx" class="subexpandable">B1I2</a>
<ul class="subcategoryitems" style="margin-left: 15px">
<li><a href="template.aspx">B1I2I1</a></li>
</ul>
</li>
<li><a href="template.aspx" class="subexpandable">B1I3</a>
<ul class="subcategoryitems" style="margin-left: 15px">
<li><a href="template.aspx">B1I3I1</a></li>
</ul>
</li>
</ul>
<h3 class="menuheader expandable">Button2</h3>
<ul class="categoryitems">
<li><a href="template.aspx" >B2I1</a></li>
</ul>
</div>
please can u help to write the XSL Template
Thanks