Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi! Im totally green at xslt but wanna do something like this: Im using the RunwayTopNavigation as menu and now I want to switch cssclass on the menuitem(li) if the user is on that page. How do I do that in xslt? example:
[code]
Thanks! Is there an easy way to get which node (count) the current node in the foreach is?
Hi, Position of the node in the for each loop is determined by the position() function. It can be compared against first() and last() position for example. Hope this helps. Regards, /Dirk
Can you please show me some syntax..?
Sure I can, [code][/code] last() works in a similar way, but checks whether node is last in for-each loop. Regards, /Dirk
Thank you! That helped!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
xsl:if
Hi!
Im totally green at xslt but wanna do something like this:
Im using the RunwayTopNavigation as menu and now I want to switch cssclass on the menuitem(li) if the user is on that page.
How do I do that in xslt?
example:
[code]
[/code]
regards
Ismail
Thanks!
Is there an easy way to get which node (count) the current node in the foreach is?
Hi,
Position of the node in the for each loop is determined by the position() function.
It can be compared against first() and last() position for example.
Hope this helps.
Regards,
/Dirk
Can you please show me some syntax..?
Sure I can,
[code][/code]
last() works in a similar way, but checks whether node is last in for-each loop.
Regards,
/Dirk
Thank you! That helped!
is working on a reply...