My DDR menu's XSLT file uses the following code to determine if a menu item is enabled and if so - adds the A tag to the menu.
<xsl:when test="@enabled = 1">
<a href="{@url}" target="{@target}">
I'm trying to add a condition so that if this item is the first in the list it's not an active link. I've updated the code to the following, but it results in a "Can't find processor for manifest" error.
<xsl:when test="@enabled = 1">
<xsl:if test="@first = 1"><a href="{@url}" target="{@target}"></xsl:if>
<xsl:if test="@first != 1"><a href="#"></xsl:if>
In both examples the closing </a> tag is later in the code.
What am I doing wrong?