Copied to clipboard

Flag this post as spam?

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


  • DevEx 2 posts 22 karma points
    Jul 21, 2010 @ 15:34
    DevEx
    0

    Extra attribute (xmlns:Exslt.ExsltSets) inserted in XSLT output

    For some reason, I'm getting an attribute inserted in a XSLT output and I'm not sure what is causing it.

    A snippet of my XSLT that causes the error:

    <xsl:if test="string($currentPage/data [@alias='HomeLeftCol_1Visible']) = '1'">
    <h4><xsl:value-of select="$currentPage/data [@alias = 'HomeLeftCol_1Label']" disable-output-escaping="yes"/></h4>
    <div><xsl:value-of select="$currentPage/data [@alias = 'HomeLeftCol_1Content']" disable-output-escaping="yes"/></div>
    </xsl:if>

    The h4 and div elements (bolded above) have the following attribute inserted in the output:

    xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"

    Here's the generated output:

    <h4 xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets">...content...</h4>
    <div xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets">

    <p>...content...</p>
    </div>

    Any ideas what's causing this?

    I'm using umbraco v 4.0.3 (Assembly version: 1.0.3654.6540) running on Win2008 / IIS7.

    Thanks!
    Chris

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jul 21, 2010 @ 15:41
    Ismail Mayat
    0

    Devex,

    In the xslt header you need to exclude those xslt extensions eg exclude-result-prefixes="Exslt.ExsltSets "

    reagrds

     

    Ismaiol

  • DevEx 2 posts 22 karma points
    Jul 21, 2010 @ 15:50
    DevEx
    0

    Works brilliantly!  Thanks!

    Chris

Please Sign in or register to post replies

Write your reply to:

Draft