XSLT disable-output-escaping not supporting two diff servers

Gidday

I have a page with XSLT that makes small amounts of awesome, and it basically goes pretty well, but I ended up at a checkpoint.

This page: http://codefinger.co.nz/_testing/build_2011/ throttles the CDATA sections that are not actually part of my .xsl file, they seem to be inserted during the conversion (Javascript analyzes the errors).

Interestingly, this SO: xslt, javascript and unescaped html entity question solved the problem on my local test site (I wrapped the contents of my script blocks with XSL tags with output disabled), which is a WAMP 2.0 stack with this XSL configuration: localhost: // phpinfo ()

My live, hosted server has this configuration: http://codefinger.co.nz/php-info.php , and the same approach does not work.

Here's the source .xsl file: http://codefinger.co.nz/_testing/build_2011/xsl/siteContent.xsl , the corresponding .xml is valid, it is here: http://codefinger.co.nz/_testing/build_2011/xml /siteContent.xml .

Any ideas?

It should be noted that I really do not like moving 2 of 3 blocks of scripts to external files - one of them replaces the Cufon font (so that I can move it), the other is a wee script in the head tag by Luke Smith, which converts to CSS when JS available.

0
source share
1 answer

CDATA <xsl:text> :

<xsl:text disable-output-escaping="yes"><![CDATA[
    ..... 
]]></xsl:text> 

, :

<xsl:comment><![CDATA[
    ..... 
]]></xsl:comment>
+1

Source: https://habr.com/ru/post/1749878/


All Articles