Hello. I am finding it impossible to get with-param to work with apply-templates. As an example, I've hacked the examples given in w3schools.
xsl
<xsl:template match="/">
<xsl:apply-templates>
<xsl:with-param name="test" select="'has this parameter been passed?'"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="cd">
<xsl:param name="test"></xsl:param>
parameter:
<xsl:value-of select="$test"></xsl:value-of>
</xsl:template>
xml
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<country>UK</country>
<company>CBS Records</company>
<price>9.90</price>
<year>1988</year>
</cd>
</catalog>
(Hopefully) you'll see that the test parameter is not being passed to the cd template. I can get it to work when using call-template, but not apply-templates. What's going on? I am using XSL 1.0. Please ignore the fact that I'm passing a hard-coded parameter - this is just an example.