cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: current sitemap directory path
Date Thu, 22 Jul 2004 06:10:04 GMT
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:moissinac@enst.fr] 
> Sent: Wednesday, July 21, 2004 7:42 PM
> To: dev@cocoon.apache.org
> 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
> 
> 


Mime
View raw message