[Portfolio] XSL displaying HTML code in presentation

Sean Keesler sean at keesler.org
Wed Jul 15 10:53:30 PDT 2009


If you provide the passthrough XML and your stylesheet, it would be a
little easier to help!

Sean Keesler
130 Academy Street
Manlius, New York 13104 USA
315-663-7756
sean.keesler at threecanoes.com



On Wed, Jul 15, 2009 at 12:10 PM, Noah Botimer<botimer at umich.edu> wrote:
> 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"
>
> _______________________________________________
> 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