Subject: Re: [xsl] 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" />
-- /M:D
M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Preventing CDATA output in XH, Brian Koontz | Thread | Re: [xsl] Preventing CDATA output i, M. David Peterson |
[xsl] Preventing CDATA output in XH, Brian Koontz | Date | Re: [xsl] <quote>XSL is NOT easy</q, Roger |
Month |