[xsl] Entity Problems...

Subject: [xsl] Entity Problems...
From: "Nick Shepherd" <nick@xxxxxxxxxxxxxxxx>
Date: Fri, 17 Aug 2007 12:09:39 -0400
I use XSL in a homegrown content management system I wrote in php for
the templating system.  One of the problems I have encountered before
was the use of entities like "&nbsp;" and the such.  When not wrapped
in CDATA tags it would always give an error unless it was replaced
with the numeric equivalent.  This data not being wrapped in CDATA is
imperative because it is being used to output html that has been
inputed from a textarea to the screen using xsl:copy-of...

Now to my question, although basic compared to the questions generally
asked on this list, is there any way to prevent these entities from
producing errors?  We've come to a point with one of our products that
allows users to create their own websites and this type of
functionality is needed because the rich text editor of choice loves
to throw "&nbsp;" everywhere (tiny mce).  Any ideas?  Or alternatives
to the rich text editor that would allow non-techy users to edit the
look and feel of their content on their sites?

Nick Shepherd

Current Thread