Re: {realpath:xxx} and mount-table

2005-11-27 Thread Nico Verwer

Jean-Claude Moissinac wrote:


So, is there a simple way to know the directory of a sitemap?


There is, see http://wiki.apache.org/cocoon/SitemapPathModule?action=show
Regards, Nico Verwer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



{realpath:xxx} and mount-table

2005-11-22 Thread Jean-Claude Moissinac
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?

PS: I would like to use this path to create a new directory in the data directory
PPS with {baselink:SitemapBaseLink} and {baselink:RequestBaseLink}, I get a blank path (0 characters)-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: 
[EMAIL PROTECTED]Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


Re: {realpath:xxx} and mount-table

2005-11-22 Thread Sylvain Wallez

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=../../../CocoonSites/ccajax//
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 WallezAnyware 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]



Re: {realpath:xxx} and mount-table

2005-11-22 Thread Jean-Claude Moissinac
So, is there a simple way to know the directory of a sitemap?
Or, in my case, to create a directory in the directory of the current sitemap?

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 contextobject 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
WallezAnyware
Technologieshttp://bluxte.net
http://www.anyware-tech.comApache Software Foundation Member Research  Technology Director-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: [EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm 


Re: {realpath:xxx} and mount-table

2005-11-22 Thread Jean-Claude Moissinac
The documentation for the RealPathModule says:
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 contextobject 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
WallezAnyware
Technologieshttp://bluxte.net
http://www.anyware-tech.comApache Software Foundation Member Research  Technology Director
-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]
-- -- Jean-Claude MoissinacDepartment of Computer Science and NetworksENST ParisFRANCEE-mail: 
[EMAIL PROTECTED]
Tel: (+33) 1.45.81.80.88Fax: (+33) 1.45.81.71.58http://shadok.enst.fr/jcm


Re: {realpath:xxx} and mount-table

2005-11-22 Thread Sylvain Wallez

Jean-Claude Moissinac wrote:

The documentation for the RealPathModule says:
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.


Yes, in the sense that context should be defined as web application 
context.


Sylvain

--
Sylvain WallezAnyware 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]