Copied to clipboard

Flag this post as spam?

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


  • Profiterole 232 posts 264 karma points
    Jun 07, 2010 @ 22:26
    Profiterole
    0

    Insert html in xslt from a doctype

    Hi, I don't know if it's possible or if someone as done that, but I'd like to insert raw html into an xslt and I want that xslt to interpret it.

    So, I created a doctype with a multiline textbox in which a entered the html.

    Then, in my xslt I call that node and its rawHtml. But instead of interpreting the html code, it displays it. So I see <a href="blabla">link</a> instead of a link.

    Am I understandable?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jun 07, 2010 @ 22:41
    Lee Kelleher
    0

    Hi Profiterole,

    You'll need to add the "disable-output-escaping" attribute to the value-of:

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

    Change the "select" XPath expression to use the correct data.

    Cheers, Lee.

  • Profiterole 232 posts 264 karma points
    Jun 07, 2010 @ 22:46
    Profiterole
    0

    Yeah, thank you... newb error!

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jun 07, 2010 @ 22:57
    Lee Kelleher
    0

    No problem, been there myself! Happy to help.

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft