You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jean-Claude Moissinac <mo...@enst.fr> on 2005/03/30 10:43:18 UTC

Source from a parameter in the URL

Hello

I need to use an URL parameter as the source of a pipeline
(something like http:\\mycocoon?src=mystring where mysource could be 
anything: a file name, an URL...)
and I don't see clearly a good method.

I think the question could be:
how can I use a parameter in the URL as the src attribute in a generator?
(something like <map:generate src="mystring"/> for the previous sample)

-- 
Jean-Claude Moissinac


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


Re: Source from a parameter in the URL

Posted by Upayavira <uv...@upaya.co.uk>.
Jean-Claude Moissinac wrote:
> Hello
> 
> I need to use an URL parameter as the source of a pipeline
> (something like http:\\mycocoon?src=mystring where mysource could be 
> anything: a file name, an URL...)
> and I don't see clearly a good method.
> 
> I think the question could be:
> how can I use a parameter in the URL as the src attribute in a generator?
> (something like <map:generate src="mystring"/> for the previous sample)
> 
<map:generate src="{request-param:src}"/>

Upayavira


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


Re: Source from a parameter in the URL

Posted by Jean-Claude Moissinac <jc...@gmail.com>.
The answer is very simple
		<map:match pattern="filter">
			<map:generate src="{request-param:src}"/>
...
for a request
http:\\mycocoon\filter?src=mystring

On Wed, 30 Mar 2005 10:43:18 +0200, Jean-Claude Moissinac
<mo...@enst.fr> wrote:
> Hello
> 
> I need to use an URL parameter as the source of a pipeline
> (something like http:\\mycocoon?src=mystring where mysource could be
> anything: a file name, an URL...)
> and I don't see clearly a good method.
> 
> I think the question could be:
> how can I use a parameter in the URL as the src attribute in a generator?
> (something like <map:generate src="mystring"/> for the previous sample)
> 
> --
> Jean-Claude Moissinac
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

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