Copied to clipboard

Flag this post as spam?

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


  • Lee 1123 posts 3059 karma points
    Jul 27, 2009 @ 13:29
    Lee
    0

    Can't Get HTML To Show As HTML?

    I'm pulling the value of a property through using XSLT and its still not showing as HTML? Its encoding it?

    <xsl:value-of select="data [@alias = 'AltTag']" disable-output-escaping="yes" />

    I'm using the disable-output-escaping="yes" anything else I am missing?

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jul 27, 2009 @ 14:16
    Thomas Höhler
    100

    Hmm, we have no problem with disable-output-escaping="yes" perhaps it is a caching issue?

  • Daniel.S 50 posts 135 karma points
    Jul 27, 2009 @ 14:22
    Daniel.S
    0

    In what context exactly are you trying to do this? What's stored in the AltTag field?

    Can you show us the rest of the code surrounding that line?

  • Petr Snobelt 923 posts 1534 karma points
    Jul 27, 2009 @ 14:25
    Petr Snobelt
    1

    xsl:copy-of instead xsl:value-of?

  • Douglas Robar 3570 posts 4671 karma points MVP ∞ admin c-trib
    Jul 27, 2009 @ 15:10
    Douglas Robar
    0

    @Lee your xslt looks good so the question is... what is actually in the 'AltTag' property? Perhaps it is already encoded? If so, you'd need to specifically decode it. Take a look at the the output of xsl:copy-of select="data[@alias='AltTag'] and see what you're really working with.

    If the output is not html-encoded already, please show us the copy-of output and the rest of your xslt. Maybe we can spot the problem then.

    cheers,
    doug.

  • Lee 1123 posts 3059 karma points
    Jul 27, 2009 @ 16:25
    Lee
    0

    Sorry my fault... Being a plank! Works fine...  Its a long page and I put disable-output-escaping="yes" on the wrong property!!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies