RealPathModule provides a real filesystem path for a virtual context-relative path.
So,
{realpath:/ccajax/data}
must give a real filesystem path the virtual context-relative /ccajax/data path
Giving the virtual path on a mounted sitemap, the real filesystem path is C:\Documents\CocoonSites\ccajax\data
and not C:\Documents\cocoon-2.1.8\build\webapp\ccajax\data, in my sample.
I think the documentation is inaccurate.
On 11/22/05, Sylvain Wallez <
[EMAIL PROTECTED]> wrote:
Jean-Claude Moissinac wrote:
> I have some sitemaps monted with the root mont-table.xml
> I have the following line in the mount-table
> <mount uri-prefix="ccajax/" src=""
> The ccajax directory has a data subdirectory.
>
> When I use
> {realpath:/ccajax/data}
> I get
>
>
> C:\Documents\cocoon-2.1.8\build\webapp\ccajax\data
>
> which is false; the true value is
>
>
> C:\Documents\CocoonSites\ccajax\data
>
> Is this a misunderstanding from me or a bug in Cocoon?
It's a misunderstanding: the realpath module uses the webapp's context
object to get the real path of a resource *in the webapp*, and has no
relation with the current sitemap's location nor the current URL prefix.
I'm not sure there's a module that does what you're looking for...
Sylvain
--
Sylvain Wallez Anyware Technologies
http://bluxte.net http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm