Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom 713 posts 954 karma points
    May 02, 2011 @ 13:52
    Tom
    0

    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??

     

    <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>
  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 02, 2011 @ 14:40
    Jan Skovgaard
    2

    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

  • Tom 713 posts 954 karma points
    May 03, 2011 @ 01:08
    Tom
    0

    Doh! Sorry what an easy oversight! Thanks very much Jan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 03, 2011 @ 07:15
    Jan Skovgaard
    0

    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

  • Tom 713 posts 954 karma points
    May 03, 2011 @ 07:29
    Tom
    0

    Hi Jan, funnily enough im using 4.7!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 03, 2011 @ 07:59
    Jan Skovgaard
    0

    Did you create the XSLT file within Umbraco also?

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft