You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nicolás Lichtmaier <ni...@reloco.com.ar> on 2006/03/20 21:22:30 UTC
Passing parameter to the XSLTProcessor... is this posible?
That's it. I'm matching in a pipeline with wildcards:
<map:match pattern="formulario/*/*">
... and now I would like to pass {1} and {2} as normal XSLT parameters.
Is this posible? I can't find anything in the docs.
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Passing parameter to the XSLTProcessor... is this posible?
Posted by Nicolás Lichtmaier <ni...@reloco.com.ar>.
> Yes, this is possible. Here an example.
>
> <map:transform src="example.xsl">
> <map:parameter name="param1" value="{1}"/>
> <map:parameter name="param2" value="{2}"/>
> </map:transform>
Very easy... I should have tried that before asking here =).
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Passing parameter to the XSLTProcessor... is this posible?
Posted by Nils Kaiser <Ni...@gmx.de>.
Yes, this is possible. Here an example.
<map:transform src="example.xsl">
<map:parameter name="param1" value="{1}"/>
<map:parameter name="param2" value="{2}"/>
</map:transform>
You just have to add the parameters to the xsl you are calling. In our case:
<xsl:param name="param1" />
<xsl:param name="param2" />
Greets,
Nils Kaiser
Nicolás Lichtmaier schrieb:
> That's it. I'm matching in a pipeline with wildcards:
>
> <map:match pattern="formulario/*/*">
>
> ... and now I would like to pass {1} and {2} as normal XSLT
> parameters. Is this posible? I can't find anything in the docs.
>
> Thanks!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>