[Portfolio] XSL displaying HTML code in presentation
Noah Botimer
botimer at umich.edu
Wed Jul 15 09:10:05 PDT 2009
Jon,
I would try value-of in both places and do the output escaping only
where you output it (not when declaring the variable). Also, it looks
like that XPath is a bit complicated. You should verify that it's
hitting the right element.
Thanks,
-Noah
On Jul 15, 2009, at 10:46 AM, Jon Wheat wrote:
> I thought I had this working, but it seems I do not.
>
> I have a richtext editor in a form for reflection (pretty standard,
> right?)
> I have this code in my stylesheet to render it -
>
> <xsl:variable name="reflection" ><xsl:copy-of select="/*/*[name(.)
> = $node-name]/artifact/structuredData/document/docReflection"
> disable-output-escaping="yes"/></xsl:variable>
> <xsl:copy-of select="$reflection" />
>
> which I thought would render the html as html, not text. I've also
> tried value-of ... which also renders the code to the screen.
>
> like this : <p><strong>There and Back Again</strong></p> <p>Lorem
> ipsum dolo</p>
>
> any ideas what I might be doing wrong ?
>
> -Jon
>
> _______________________________________________
> portfolio mailing list
> portfolio at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/portfolio
>
> TO UNSUBSCRIBE: send email to portfolio-
> unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
More information about the portfolio
mailing list