You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Luca Morandini <l....@tin.it> on 2001/11/10 12:19:05 UTC
Sitemap parameters set by Transformer
Folks,
does anyone know how to set a sitemap parameter from within a Transformer ?
I'd like to be able to steer the sitemap flow from a Transformer, and the
best way seems to me the ability to set sitemap parameters (to be used in
some subsequent <map:select> statements).
Best regards,
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Sitemap parameters set by Transformer
Posted by giacomo <gi...@apache.org>.
On Sat, 10 Nov 2001, Liam Morley wrote:
> I think what Luca means is to have something like "<map:parameter/>". To
> me, it would make sense to send SAX events that trigger certain things
> to happen down the road, depending on what you have in mind.
>
> Otherwise, I'm not sure if you can set sitemap properties mid-way
> through a pipeline's execution, although it does seem like a decent
> idea. I hope you find a solution that applies to your particular
> problem.
You got the point. As soon as the pipelines starts to produce SAX
events the sitemap has already done its job and thus isn't able to
rearrange your pipeline according to some SAX events (or setting any
parameters somewhere).
Giacomo
>
> Liam Morley
>
> -----Original Message-----
> From: Luca Morandini [mailto:l.moran@tin.it]
> Sent: Saturday, November 10, 2001 6:19 AM
> To: Cocoon-users
> Subject: Sitemap parameters set by Transformer
>
> Folks,
>
> does anyone know how to set a sitemap parameter from within a
> Transformer ?
>
> I'd like to be able to steer the sitemap flow from a
> Transformer, and the
> best way seems to me the ability to set sitemap parameters (to be used
> in
> some subsequent <map:select> statements).
>
> Best regards,
>
>
> ---------------------------------------------
> Luca Morandini
> GIS Consultant
> lmorandini@ieee.org
> http://utenti.tripod.it/lmorandini/index.html
> ---------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Sitemap parameters set by Transformer
Posted by Liam Morley <lm...@WPI.EDU>.
I think what Luca means is to have something like "<map:parameter/>". To
me, it would make sense to send SAX events that trigger certain things
to happen down the road, depending on what you have in mind.
Otherwise, I'm not sure if you can set sitemap properties mid-way
through a pipeline's execution, although it does seem like a decent
idea. I hope you find a solution that applies to your particular
problem.
Liam Morley
-----Original Message-----
From: Luca Morandini [mailto:l.moran@tin.it]
Sent: Saturday, November 10, 2001 6:19 AM
To: Cocoon-users
Subject: Sitemap parameters set by Transformer
Folks,
does anyone know how to set a sitemap parameter from within a
Transformer ?
I'd like to be able to steer the sitemap flow from a
Transformer, and the
best way seems to me the ability to set sitemap parameters (to be used
in
some subsequent <map:select> statements).
Best regards,
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Sitemap parameters set by Transformer
Posted by giacomo <gi...@apache.org>.
On Sat, 10 Nov 2001, Luca Morandini wrote:
> Folks,
>
> does anyone know how to set a sitemap parameter from within a Transformer ?
Why would your Transformer need to set a sitemap parameter (BTW what do
you mean by "sitemap parameter"??) Actually there is no way (and no
intention) to set any parameter (except those available from the
Environment like Request, Session)
> I'd like to be able to steer the sitemap flow from a Transformer, and the
> best way seems to me the ability to set sitemap parameters (to be used in
> some subsequent <map:select> statements).
You should make a sample.
Giacomo
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Sitemap parameters set by Transformer
Posted by David Rosenstrauch <da...@dti.net>.
Best I know how to do is set a sitemap parameter from an Action.
Details about this in the C2 docs, but basically the Action's act() method returns a map object. Anything that you put in this map is accessible to your sitemap.
e.g.: if you do map.put("test", "teststring"), then the sitemap can reference the parm {test}.
HTH.
DR
At 12:19 PM 11/10/01 +0100, you wrote:
>Folks,
>
> does anyone know how to set a sitemap parameter from within a Transformer ?
>
> I'd like to be able to steer the sitemap flow from a Transformer, and the
>best way seems to me the ability to set sitemap parameters (to be used in
>some subsequent <map:select> statements).
>
>Best regards,
>
>
>---------------------------------------------
> Luca Morandini
> GIS Consultant
> lmorandini@ieee.org
>http://utenti.tripod.it/lmorandini/index.html
>---------------------------------------------
>
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>