You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Bierenfeld <mi...@atmiralis.de> on 2000/05/19 09:25:59 UTC

SOLVED Re: Maybe off Topic. But why is with-param not working ?

> 
> <!-- **** PROBLEM START **** ------>
> 
>                 <xsl:call-template name="hiddenfield">
>                         <xsl:with-param name="fieldname">sCommand</xsl:with-param>
>                 </xsl:call-template>
> 
> <!-- **** PROBLEM END **** ------>
> 
>                 <xsl:apply-templates/>
> 
>         </form>
> 
>   </xsl:template>
> 
> This should call :
> 
>   <xsl:template name="hiddenfield">
> 
>         <xsl:param name="fieldname""Hallo"/>
> 
>         Hallo fieldname = <xsl:value-of select="@fieldname"/>
> 
>         <hidden name="{@fieldname}"/>
> 
>   </xsl:template>
> 

Inside template "hiddenfield" the parameter has to be acces via
<xsl:value-of select="$fieldname"/> AND NOT WITH
<xsl:value-of select="@fieldname"/>

Maybe this is because the parameter is not comming from any "content".
Havent found the documentation for that yet.

M