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
> "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
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
>> -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
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