You have to use the SourceResolver. Each sitemap component (action, generator, transformer) gets this object either in the act() method or in the setup() method. if you pass a relative path into the SOurcerResolver it's resolved relative to the current sitemap.
HTH Carsten > -----Original Message----- > From: Jean-Claude Moissinac [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 21, 2004 7:42 PM > To: [EMAIL PROTECTED] > Subject: current sitemap directory path > > Hello > > I'm searching to obtain the directory path (absolute or > relative to the main cocoon directory) for the currently used sitemap. > I don't find a method. > I've traversed the doc, the sample...without result. > > Many samples which seams to use such an information are hard > coded and become false if there are moved See, for exemple, > the samples: > /samples/modules/realpath.html > /samples/sources/xsp/file > ... > and how they works. > > I think it is possible to get this information but finding > howto is very difficult. > Is there a Cocoon gourou which can help me? > > Jean-Claude Moissinac > >