XSL menu issue

webmasterbeta

New Member
I have following XML coming from the server

<tree>
<tree-node id="123" parent="" expand="true">
<item-data>
<label>one</label>
<menu>one</menu>
<menu>two</menu>
</item-data>
</tree-node>
</tree>

I have following XSL chunk which trasnforms the above XML elements into nodes

<xsl:template match="item-data/*">
<span class="nodeName">
<a href=http://www.webdeveloper.com/forum/archive/index.php/"table.jsp?a={../../@id}" target="mainFrame" oncontextmenu="javascript:{$objectName}.popup('{../../@id}');return false;"><xsl:value-of select="label"/></a>
</span>
</xsl:template>

I need to construct a context sensitive menu based on the XML <menu> tag items.

I am not sure if i need to add a another <div> tag within the <span>.

I would appreciate any pointers on this.


Thanks,
Sandeep
 
Back
Top