XSLT Google Adsense Bug Fix
Posted on: Sep-17-2008 06:43:28 PM by Stevan Ljuljdurovic
- Categories:
- Null
Some of you using XSLT may have noticed that your google ad's are not displaying, well here is a quick and effective solution!
Your google script will look like this
<script type="text/javascript"><!--
google_ad_client = "pub-9y124192840123";
google_ad_slot = "192884812123";
google_ad_width = 336;
google_ad_height = 280;
-->
</script>
Replace the html comments with XSLT comments. <!-- becomes <xsl:comment> . and --> becomes </xsl:comment>. Your final result will look like this:
<script type="text/javascript"><!--
<xsl:comment>
google_ad_client = "pub-91578019823752";
google_ad_slot = "124525163";
google_ad_width = 336;
google_ad_height = 280;
</xsl:comment>
</script>
Hope this helps!