[thelist] XSLT: escaping CDATA

Bob & Kelly Crispen - Web Builders' Toolkit revbob at crispen.org
Sun Apr 24 21:08:00 CDT 2005


I've got a little XSLT ruleset that converts XBEL to XHTML at 
<http://www.crispen.org/sync/rr.xsl.txt>.  I drive it via PHP at 
<http://www.crispen.org/sync/rr-bookmarks.txt> and the result is 
<http://www.crispen.org/sync/>.

The problem is, I've got a CDATA section in the XSLT script, but the 
XSLT processor consumes it (good thing, since the CSS it wraps doesn't 
look anything like XML) so that I'm left with

     <style type="text/css">
       /**/

and

       /* */
     </style>

Is there any way to escape the CDATA?  CDATA sections can't be nested 
unless I'm totally misreading things.

Any ideas?
-- 
Bob & Kelly Crispen
Web Builders' Toolkit
web dash toolkit at crispen dot org
http://web-toolkit.crispen.org/

Don't think it's important to make your website accessible?  One visitor
everybody wants to impress is Google.  Google is totally blind.


More information about the thelist mailing list