You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Andy Egleston <An...@TRISECT.com> on 2000/01/05 15:52:28 UTC
Passing Parameters
Hi,
I'm having trouble trying to pass a parameter to a template: The templates
are matching correctly. Everything is working OK except the parameter
passing. I have looked extensively at the examples and I must be missing
something. Thanks. Here is the code:
<xsl:apply-templates select="/data/table[@name='profile_value_code']/row">
<xsl:with-param name="sample">
<xsl:value-of select="{column[@name='profile_value_cd']}"/>
</xsl:with-param>
</xsl:apply-templates>
<xsl:template match="row[@name='profile_value_code']">
<xsl:param name="sample">
<xsl:value-of select="{column[@name='profile_value_cd']}"/>
</xsl:param>
<xsl:value-of select="{$sample}"/>
</xsl:template>
Andy Egleston