dynamic HREF attribute by XSLT

erroraKed

New Member
Can anyone plese advice how I can have dynamic HREF attribute in the place of http://abc.com by XSLT in following code snippet?\[code\]<xsl:for-each select="MenuItems/mainmenu"><a href="http://abc.com"><span><xsl:value-of select="menuName"/></span></a> </xsl:for-each>\[/code\]sample xml\[code\]<MenuItems><mainmenu> <menuID>1</menuID> <menuName>Home</menuName> <menuLink>http://aaa.com</menuLink> <subMenuList> <menuID>2</menuID> <menuName>Home</menuName> <menuLink>http://a1.com</menuLink> </subMenuList> <subMenuList> <menuID>3</menuID> <menuName>List of RCCs</menuName> <menuLink>http://a2.com</menuLink> </subMenuList> <subMenuList> <menuID>4</menuID> <menuName>Turnover Workout</menuName> <menuLink>http://a3.com</menuLink> </subMenuList></mainmenu><MenuItems>\[/code\]
 
Back
Top