I have this code <!-- YB: header (728x90) --> <script type="text/javascript"><!-- yieldbuild_site = 1234; yieldbuild_loc = "header"; //--></script> <script type="text/javascript" src=""></script>

The problem is that it it not displaying ads I think because of the comments in the script tag. I tried to remove them but the same. Any idea how to get it working ?

Talking about XSL output, you can recreate comments with

<xsl:comment>commented text</xsl:comment>

, having all the other tags written as they are, e.g. < /script>.

This one worked for me:

< script type="text/javascript">
< /script>

(Delete those whitespaces in script tag)

If you have issues with entities like quotes, add them into DOCTYPE as entities, but single or double quotes always worked for me out of the box, so far.

Hope I helped somehow.

For external scripts, I like to just wrap their JavaScript inside CDATA. This way its still legible when you're constructing your site.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details