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 (< = < and > = >), 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.
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 (< = < and > = >), 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 /> <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!!
It should be disable-output-escaping="yes" instead of true :)
-Tom
You 'da man, and I 'da moron.
Works like a charm
Thanks Tom!
is working on a reply...