XSLT Template not using parameter
<p>I cannot get the xslt parameter <code>zoneid</code> to be used:</p>

<pre><code>    &lt;xsl:template name="ad"&gt;
    &lt;xsl:param name="zoneid" /&gt;
    &lt;script&gt;&lt;![CDATA[
    var m3_u = (location.protocol=='https:'?'https://XX.php':'http://XX.php');
    var m3_r = Math.floor(Math.random()*99999999999);
    if (!document.MAX_used) document.MAX_used = ',';
    document.write ("&lt;scr"+"ipt type='text/javascript' src='"+m3_u);
    document.write ("?zoneid={$zoneid}"/&gt;&amp;amp;target=_blank");]]&gt;&lt;/script&gt;
    &lt;/xsl:template&gt;
</code></pre>

<p>Now I run the template by this:</p>

<pre><code> &lt;xsl:template name="ad_300x600"&gt;
 &lt;xsl:param name="state" /&gt;
 &lt;xsl:param name="locid" /&gt;
 &lt;xsl:when test="$state='FL'"&gt;&lt;xsl:call-template name="ad"&gt;&lt;xsl:with-param name="zoneid"&gt;341&lt;/xsl:with-param&gt;&lt;/xsl:call-template&gt;&lt;/xsl:when&gt;
 &lt;/template&gt;
</code></pre>

<p>And here is the resulting HTML:</p>

<pre><code>        &lt;script&gt;
        var m3_u = (location.protocol=='https:'?'https://XX.php':'http://XX.php');
        var m3_r = Math.floor(Math.random()*99999999999);
        if (!document.MAX_used) document.MAX_used = ',';
        document.write ("&lt;scr"+"ipt type='text/javascript' src='"+m3_u);
        document.write ("?zoneid={$zoneid}"/&gt;&amp;amp;target=_blank");
        &lt;/script&gt;
</code></pre>

<p><strong>As you can see in the resulting HTML Its saying <code>{$zoneid}</code>.</strong></p>

<p>I've also tried <code>&lt;xsl:value-of select="$zoneid"/&gt;</code> with no luck either.</p>

<p>Not sure what to do here.</p>