Subject: Re: Preventing CDATA output in XHTML
From: "M. David Peterson" <m.david@xxxxxxxxxxxxx>
Date: Mon, 02 Jul 2007 15:47:47 -0600
|
On Mon, 02 Jul 2007 14:52:52 -0600, Brian Koontz
<briank@xxxxxxxxxxxxxxxxxxx> wrote:
<script type="text/javascript">
<![CDATA[
some_func("some_arg");
]]>
</script>
which FF refuses to parse without errors.
I've noticed that both Fx and Safari have issues w/ the XHTML doctype.
Try adding,
<xsl:output doctype-system="-//W3C//DTD HTML 4.01//EN"
doctype-public="http://www.w3.org/TR/html4/strict.dtd" method="html"
cdata-section-elements="script" indent="yes" />
to your transformation file and see if that fixes it.
--
/M:D
M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 |
http://dev.aol.com/blog/3155
|