Subject: [xsl] Preventing CDATA output in XHTML From: "Brian Koontz" <briank@xxxxxxxxxxxxxxxxxxx> Date: Mon, 2 Jul 2007 15:52:52 -0500 (CDT) |
Environment: DOM/XML API Version 20020815 libxml Version 20616 libxslt Version 1.1.11 libxslt compiled against libxml Version 2.6.16 libexslt Version 1.1.11 PHP 4.3.6 I'm trying to prevent CDATA tags from being generated in my XHTML output. Here's what's in the XSL: <script type="text/javascript"> some_func("some_arg") </script> Here's the output: <script type="text/javascript"> <![CDATA[ some_func("some_arg"); ]]> </script> which FF refuses to parse without errors. I've poured through the FAQs and have tried everything suggested: Wrapping in <xsl:text>, wrapping in an HTML comment, using the disable-output-escaping=yes attribute on <xsl:text>, etc. XSL such as this: <script type="text/javascript" src="js/somefile.js"></script> is rendered without CDATA tags. I've run out of ideas...about the only idea remaining is to switch XSLT libs to see if that resolves the problem. Suggestions? --Brian
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] WordML Support, Geert Josten | Thread | Re: [xsl] Preventing CDATA output i, M. David Peterson |
Re: [xsl] Replacing default namespa, Scott Sauyet | Date | Re: [xsl] Preventing CDATA output i, M. David Peterson |
Month |