cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Egleston <Andy.Egles...@TRISECT.com>
Subject Passing Parameters
Date Wed, 05 Jan 2000 14:52:28 GMT
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

Mime
View raw message