You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sébastien Geindre <se...@meteo.fr> on 2007/09/25 18:29:06 UTC

Design question about C2.2 if/else in sitemap

Hi all,

design question :

a client post an xml file to my cocoon application.

I need to handle this xml data and check spatial selection then process 
it in the right pipeline
- get xml data
- make spatial test intersection with configuration data (in java)
- if true go on this way on the sitemap, else on the other way.

How can i implement it, with C2.2 ? Best practices ?

Thanks for your ideas.

-- 
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr




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


Re: Design question about C2.2 if/else in sitemap

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Sébastien Geindre pisze:
> dummy questions :

It's not that dummy!

> how, in C2.2, get variables  from xml configuration file, in sitemap, in
> xsl transformer ???
> 

Take a look at XMLFileModule[1] that will let you to access content of XML file in your sitemap.

[1] http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/XMLFileModule.html

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

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


Re: Design question about C2.2 if/else in sitemap

Posted by Sébastien Geindre <se...@meteo.fr>.
dummy questions :

how, in C2.2, get variables  from xml configuration file, in sitemap, in 
xsl transformer ???

thanks.

Sébastien Geindre a écrit :
> Hi all,
>
> design question :
>
> a client post an xml file to my cocoon application.
>
> I need to handle this xml data and check spatial selection then 
> process it in the right pipeline
> - get xml data
> - make spatial test intersection with configuration data (in java)
> - if true go on this way on the sitemap, else on the other way.
>
> How can i implement it, with C2.2 ? Best practices ?
>
> Thanks for your ideas.
>


-- 
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr




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