Re: current sitemap directory path

2004-07-22 Thread Jean-Claude Moissinac
As soon as I try to use the resolver like this: path = resolver.resolveURI("."); or path = resolver.resolveURI("sitemap.xmap"); I get this error at compile time: " Error: line (36) cannot access org.apache.excalibur.source.SourceResolver file org\apache\excalibu

Re: current sitemap directory path

2004-07-22 Thread Colin Paul Adams
> "Carsten" == Carsten Ziegeler <[EMAIL PROTECTED]> writes: Carsten> Colin Paul Adams wrote: >> But this is only a solution when a Source object is what you >> want. This is not the case for me. I need this information >> from WITHIN a Source object, as I need to pass an abso

RE: current sitemap directory path

2004-07-21 Thread Carsten Ziegeler
Colin Paul Adams wrote: > > But this is only a solution when a Source object is what you want. > This is not the case for me. I need this information from > WITHIN a Source object, as I need to pass an absolute > directory path to a Berkeley DB XML API. > > I tried using context.getRealPath ( r

Re: current sitemap directory path

2004-07-21 Thread Colin Paul Adams
>> -Original Message- From: Jean-Claude Moissinac >> 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

RE: current sitemap directory path

2004-07-21 Thread Carsten Ziegeler
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 Messag