cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Egleston <>
Subject Passing Parameters
Date Wed, 05 Jan 2000 14:52:28 GMT

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:template match="row[@name='profile_value_code']">
  <xsl:param name="sample">
    <xsl:value-of select="{column[@name='profile_value_cd']}"/>
  <xsl:value-of select="{$sample}"/>

Andy Egleston

View raw message