Copied to clipboard

Flag this post as spam?

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


  • Terry P 4 posts 24 karma points
    May 25, 2011 @ 20:45
    Terry P
    0

    disable-output-escaping causing parser error

    New to this XSLT business...

    Using the new schema

    I am trying to display a rich text field (HTML) via XSLT everything is fine with the exception that all the tag brackets are being escaped (< = &lt; and > = &gt;), which means all my HTML mark-up is being displayed. I then discovered  disable-output-escaping, except when I insert the directive the parser dies.

     

    Error occuredError in XSLT at line 23, char 48
    21:       <strong><span class="date"><xsl:value-of select="umbraco.library:FormatDateTime(newsItemDate, 'dddd, MMMM d, yyyy')"/></span></strong>
    22:       <h2><xsl:value-of select="newsItemHeadline"/></h2>
    23: >>>   <xsl:value-of select="newsItemStory" disable-output-escaping="true"/> <<<
    24:       <br />&nbsp;<br />
    25:       <hr style="color: #CCCCCC; clear: both; height: 1; margin: 20px 0; overflow: hidden; padding: 0; width: 100%;" />

    any help will be greatly appreciated!!

     

     

  • Tom Fulton 2030 posts 4996 karma points c-trib
    May 25, 2011 @ 20:49
    Tom Fulton
    1

    It should be disable-output-escaping="yes" instead of true :)

    -Tom

  • Terry P 4 posts 24 karma points
    May 25, 2011 @ 20:52
    Terry P
    0

    You 'da man, and I 'da moron.

     

    Works like a charm

     

    Thanks Tom!

  • 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