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:[EMAIL PROTECTED]] > Sent: Wednesday, December 04, 2002 9:43 AM > To: [EMAIL PROTECTED] > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>