|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] parent path
Uhh, I'm trying to do some recursive hierarchial menus and it's turning my brain inside out :P Aaaanyway What i need to do is to access each submenu that has a submenu as parent and create an parent attribute set to the id of the parent, I'd like to do something like this: <xsl:template match="submenu"> <submenu> <xsl:attribute name="id"> <xsl:eval>menuId();</xsl:eval> </xsl:attribute> <xsl:attribute name="parent"> <xsl:value-of select="submenu/." /> </xsl:attribute> <xsl:apply-templates /> </submenu> except submenu/. doesnt work of course for accessing the parent submenu, any help would be really appreciated :) -------- Mattias Konradsson Icon medialab XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








