cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz" <reinhard_po...@gmx.net>
Subject RE: Environment variable
Date Wed, 04 Dec 2002 09:34:49 GMT
Olivier,

As far as I know this won't work.


I suggest looking at input modules - there is an example in the samples
directory available. They enhance the sitemap by the possiblity of
integrating any variables before it is executed. And one of these variables
could be a constant string.

You should find them in the upcoming 2.0.4 release or in the current
development branch 2.1.

Regards,
Reinhard

> -----Original Message-----
> From: Olivier GUCKERT [mailto:Olivier.Guckert@inria.fr]
> Sent: Wednesday, December 04, 2002 9:43 AM
> To: cocoon-users@xml.apache.org
> Subject: Environment variable
>
>
> Hello all !
>
> The home of my webapp will soon move, and i want to declare it with an
> environment variable.
>
> So i define an environment variable and replace the path to the
> directory of my website sitemap.xmap with this variable :
>
> so : before :
> <map:match pattern="referentiels/**">
> 	<map:mount uri-prefix="referentiels"
>
> src="file:/users/sys/guckert/dossiers/cocoon/referentiels/sitemap.xmap"
> 		reload-method="synchron"
> 		check-reload="yes"/>
> </map:match>
>
> and after :
> <map:match pattern="referentiels/**">
> 	<map:mount uri-prefix="referentiels"
> 		src="file:$REFERENTIEL_HOME/sitemap.xmap"
> 		reload-method="synchron"
> 		check-reload="yes"/>
> </map:match>
>
> But, when i try to reload the index.html with Cocoon, i get the folowing
> :
>  Failed to load sitemap from file:$REFERENTIEL_HOME/sitemap.xmap
>
> Is it not possible to do this with cocoon or what did i wrong ?
>
> Thanks
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message