[thelist] XSLT: escaping CDATA
Sam Foster
sam at sam-i-am.com
Wed Apr 27 09:18:14 CDT 2005
> 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.
Did you get any ideas on this? I'm facing the same problem, trying to
round trip some xhtml through an xslt transformation. I can do it if I
pre/post process in perl, but the whole point is that this shouldn't be
necessary and I should be able to accomplish it all in xslt.
thanks
Sam
More information about the thelist
mailing list