I have created 1 XSLT to deal with the main and sub navigation for a site. The main navigation works without any issues.
The sub navigation fails when I am checking for the current/selected page. If I remove the current/selected page if statement, then the sub navigation works without any issues.
I have included the code below so you can see what is happening. Does anyone have any ideas?
<!-- Input the documenttype you want here --> <!-- Typically '1' for topnavigtaion and '2' for 2nd level --> <!-- Use div elements around this macro combined with css --> <!-- for styling the navigation --> <xsl:variable name="level" select="/macro/level"/> <!--xsl:variable name="level" select="1"/-->
Current page in subnavigation
I have created 1 XSLT to deal with the main and sub navigation for a site. The main navigation works without any issues.
The sub navigation fails when I am checking for the current/selected page. If I remove the current/selected page if statement, then the sub navigation works without any issues.
I have included the code below so you can see what is happening. Does anyone have any ideas?
Hello Sean,
Below is a xslt I created the other day for the same sort of navigation hopefully this will help.
Thanks for the reply John.
I have managed to fix it using the following code. The issue was around how the class attribute and current page was being tested.
is working on a reply...