[Portfolio] XSL displaying HTML code in presentation
Jon Wheat
jwheat at messiah.edu
Wed Jul 15 12:31:47 PDT 2009
amazing - I now definitely owe you a drink, thanks - that worked perfectly.
that's two for two Noah :)
thanks also to Erica !
whew - one more task to cross off my list - yea.
- Jon
>>> Noah Botimer <botimer at umich.edu> 7/15/2009 12:10 PM >>>
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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/portfolio/attachments/20090715/f8efb773/attachment.html
More information about the portfolio
mailing list