[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Preventing CDATA output in XHTML

Subject: Re: Preventing CDATA output in XHTML
From: "M. David Peterson" <m.david@xxxxxxxxxxxxx>
Date: Mon, 02 Jul 2007 15:47:47 -0600
Re:  Preventing CDATA output in XHTML
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.