You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2004/05/07 16:28:49 UTC

Sending parameter in a resource

Hi all,

I'm trying this in a pipeline :

         <map:call resource="display_modif_carryout">
           <map:parameter name="message" value="coucou"/>
         </map:call>

I have an xsl stylesheet in the resource to get the parameter but it is empty.

Why that ?

Lionel

Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Sending parameter in a resource

Posted by Lionel Crine <cr...@4dconcept.fr>.
It's working, thanks.
I thought I have already tried that this way but finally I didn't, 
otherwise I wouldn't ask the question.

Lionel


At 23:55 10/05/2004 +0200, you wrote:
>On 10.05.2004 15:47, Lionel Crine wrote:
>
>>In my xsl, I have an <xsl:param name="message"/>
>>
>>Here is the resource :
>><map:resource name="display_modif_declare">
>>       <map:transform src="xsl/open_modification_declare.xsl" type="xslt"/>
>>       <map:transform src="xsl/presentation.xsl" type="xslt">
>>         <map:parameter name="role" value="{session-attr:ROLE}"/>
>
>Add <xsl:parameter name="message" value="{message}"/> here.
>
>>       </map:transform>
>>       <map:serialize type="html"/>
>>     </map:resource>
>
>The value="{message}" refers to the resource call.
>
>Joerg
>
>>At 17:36 08/05/2004 +0200, you wrote:
>>
>>>On 07.05.2004 16:28, Lionel Crine wrote:
>>>
>>>>Hi all,
>>>>I'm trying this in a pipeline :
>>>>         <map:call resource="display_modif_carryout">
>>>>           <map:parameter name="message" value="coucou"/>
>>>>         </map:call>
>>>>I have an xsl stylesheet in the resource to get the parameter but it is 
>>>>empty.
>>>>Why that ?
>>>
>>>
>>>In the ressource you need to pass the parameter to the stylesheet. And 
>>>in the stylesheet you must have <map:param/> globally, but I guess you 
>>>have that one. How does your resource look like?
>>>
>>>Joerg
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org

Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Sending parameter in a resource

Posted by Joerg Heinicke <jo...@gmx.de>.
On 10.05.2004 15:47, Lionel Crine wrote:

> In my xsl, I have an <xsl:param name="message"/>
> 
> 
> Here is the resource :
> 
> <map:resource name="display_modif_declare">
>       <map:transform src="xsl/open_modification_declare.xsl" type="xslt"/>
>       <map:transform src="xsl/presentation.xsl" type="xslt">
>         <map:parameter name="role" value="{session-attr:ROLE}"/>

Add <xsl:parameter name="message" value="{message}"/> here.

>       </map:transform>
>       <map:serialize type="html"/>
>     </map:resource>

The value="{message}" refers to the resource call.

Joerg

> At 17:36 08/05/2004 +0200, you wrote:
> 
>> On 07.05.2004 16:28, Lionel Crine wrote:
>>
>>> Hi all,
>>> I'm trying this in a pipeline :
>>>         <map:call resource="display_modif_carryout">
>>>           <map:parameter name="message" value="coucou"/>
>>>         </map:call>
>>> I have an xsl stylesheet in the resource to get the parameter but it 
>>> is empty.
>>> Why that ?
>>
>>
>> In the ressource you need to pass the parameter to the stylesheet. And 
>> in the stylesheet you must have <map:param/> globally, but I guess you 
>> have that one. How does your resource look like?
>>
>> Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Sending parameter in a resource

Posted by Lionel Crine <cr...@4dconcept.fr>.
In my xsl, I have an <xsl:param name="message"/>


Here is the resource :

<map:resource name="display_modif_declare">
       <map:transform src="xsl/open_modification_declare.xsl" type="xslt"/>
       <map:transform src="xsl/presentation.xsl" type="xslt">
         <map:parameter name="role" value="{session-attr:ROLE}"/>
       </map:transform>
       <map:serialize type="html"/>
     </map:resource>



At 17:36 08/05/2004 +0200, you wrote:
>On 07.05.2004 16:28, Lionel Crine wrote:
>
>>Hi all,
>>I'm trying this in a pipeline :
>>         <map:call resource="display_modif_carryout">
>>           <map:parameter name="message" value="coucou"/>
>>         </map:call>
>>I have an xsl stylesheet in the resource to get the parameter but it is 
>>empty.
>>Why that ?
>
>In the ressource you need to pass the parameter to the stylesheet. And in 
>the stylesheet you must have <map:param/> globally, but I guess you have 
>that one. How does your resource look like?
>
>Joerg
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org

Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Sending parameter in a resource

Posted by Joerg Heinicke <jo...@gmx.de>.
On 07.05.2004 16:28, Lionel Crine wrote:

> Hi all,
> 
> I'm trying this in a pipeline :
> 
>         <map:call resource="display_modif_carryout">
>           <map:parameter name="message" value="coucou"/>
>         </map:call>
> 
> I have an xsl stylesheet in the resource to get the parameter but it is 
> empty.
> 
> Why that ?

In the ressource you need to pass the parameter to the stylesheet. And 
in the stylesheet you must have <map:param/> globally, but I guess you 
have that one. How does your resource look like?

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org