You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Mariano Kamp <mk...@codamax.com> on 2001/07/11 11:24:35 UTC

Usage of request parameters in sitemap?!

Hi, 

  how can I use request parameters in serializer?

  I implemented setup(...), which is never called. I found configure, which 
seems to give me xs to the parameters from the sitemap, but how can I get 
hold of the request parameters? 

  Just for the full picture, I want to pass in the width and height for an 
image.

Mariano

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


Re: Usage of request parameters in sitemap?!

Posted by Mariano Kamp <mk...@codamax.com>.
On Wednesday 11 July 2001 01:18 pm, Giacomo Pati wrote:
> Quoting Mariano Kamp <mk...@codamax.com>:

> >   how can I use request parameters in serializer?

> You cannot. Serializers are there for only one purpose: serialize a SAX
> event to a byte stream. Nothing more and nothing less. If you have the need
> to access environmental objects use a Transformer.

I do only use that for serializing sax events to a a stream, but this stream 
is an image an needs a size. So I think I do stay in the picture.

However I did understand that this is something, which "violates" your 
concepts and I have to move it to a preceeding transformer. I'll do that then.

Mariano

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


Re: Usage of request parameters in sitemap?!

Posted by Giacomo Pati <gi...@apache.org>.
Quoting Mariano Kamp <mk...@codamax.com>:

> Hi, 
> 
>   how can I use request parameters in serializer?
> 
>   I implemented setup(...), which is never called. I found configure,
> which 
> seems to give me xs to the parameters from the sitemap, but how can I
> get 
> hold of the request parameters? 

You cannot. Serializers are there for only one purpose: serialize a SAX event to
a byte stream. Nothing more and nothing less. If you have the need to access
environmental objects use a Transformer.

Giacomo

> 
>   Just for the full picture, I want to pass in the width and height for
> an 
> image.
> 
> Mariano
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 
> 

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