Hi all,
the following piece of code generates a langauge toggle. Could anyone give me some ideas on how i would add a condition that adds a <strong> tag around the selected langauge (locale) and have it as text rather than a link?
<xsl:template name="rk_top_lang_nav">
<xsl:choose>
<xsl:when test="count(/*/locales/locale) > 1">
<ul id="navlang">
<xsl:for-each select="/*/locales/locale">
<li>
<xsl:if test="position() = 1 ">
<xsl:attribute name="class">first</xsl:attribute>
</xsl:if>
<a href="{locale_link}"><xsl:value-of select="locale_name"/></a>
</li>
</xsl:for-each>
</ul>
</xsl:when>
<xsl
therwise/>
</xsl:choose>
</xsl:template>
thanx in advance
the following piece of code generates a langauge toggle. Could anyone give me some ideas on how i would add a condition that adds a <strong> tag around the selected langauge (locale) and have it as text rather than a link?
<xsl:template name="rk_top_lang_nav">
<xsl:choose>
<xsl:when test="count(/*/locales/locale) > 1">
<ul id="navlang">
<xsl:for-each select="/*/locales/locale">
<li>
<xsl:if test="position() = 1 ">
<xsl:attribute name="class">first</xsl:attribute>
</xsl:if>
<a href="{locale_link}"><xsl:value-of select="locale_name"/></a>
</li>
</xsl:for-each>
</ul>
</xsl:when>
<xsl
</xsl:choose>
</xsl:template>
thanx in advance