Hi guys im rendering a nav menu using xlst.. im getting some strange markup where each element is getting some string extension data appended to the dom??
<ul class="menu dark_dropdown"><!-- BEGIN MENU --><li class="home current nodrop" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings"><a href="/">Home</a></li>
And here is the line from my xslt file.. but it's happening for all items in the menu
<li class="nodrop"><xsl:if test="$currentPage/@id = $currentPage/ancestor-or-self::* [@level=$level]/@id"><xsl:attribute name="class"><xsl:text>home current nodrop</xsl:text></xsl:attribute></xsl:if><a href="/">Home</a></li>
Just out of curiosity...what version of Umbraco are you using? From 4.5 it should add all the XMLNS and exclude stuff in the stylesheet section automatically.
Wierd Xslt appending xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings"?
Hi guys im rendering a nav menu using xlst.. im getting some strange markup where each element is getting some string extension data appended to the dom??
And here is the line from my xslt file.. but it's happening for all items in the menu
Hi Tom
What does the <xsl:stylesheet> opening tag look like in your XSLT file?
It happens because you don't exclude the Exslt.ExsltStrings prefix in the exclude-result-prefixes attribute.
Hope this helps.
/Jan
Doh! Sorry what an easy oversight! Thanks very much Jan
Hi Tom
That's good to hear :-)
Just out of curiosity...what version of Umbraco are you using? From 4.5 it should add all the XMLNS and exclude stuff in the stylesheet section automatically.
/Jan
Hi Jan, funnily enough im using 4.7!
Did you create the XSLT file within Umbraco also?
/Jan
is working on a reply...