Google

Google AddSense in XSLT stylesheets Home


Google AddSense in XSLT stylesheets
7/12/2005 posted by Kevin S
This is a quick description of how to add google AddSense to XSL stylesheets.

There is a problem with including the scripts as supplied from the google adsense pages since the XSL parser gets a bit confused when it sees the comment tags in side an xsl template.

The solution is to exchange
<xsl:comment>
for
<!--
and
</xsl:comment>
for
//-->

The XSL will now parse correctly and the ads should be displayed.