Hi SukuMaran, MarkLogic Server always prepends the modules root. Making the path relative (but without .. paths) is your best bet.
Kind regards, Geert > drs. G.P.H. (Geert) Josten Consultant Daidalos BV Hoekeindsehof 1-4 2665 JZ Bleiswijk T +31 (0)10 850 1200 F +31 (0)10 850 1199 mailto:[email protected] http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: [email protected] > [mailto:[email protected]] On Behalf Of > MaranSuku > Sent: vrijdag 29 oktober 2010 4:44 > To: [email protected]; > [email protected] > Subject: [MarkLogic Dev General] Invalid Module Import path | > XQDT Error > > HI, > > I am getting the below error, > XDMP-IMPORTPATH: Invalid Module Import path: > C:\mls-projects\xquery\helloworld\lib.xqy in /eval, on line 3 > > I have created a libraray Module @ > C:\mls-projects\xquery\helloworld\lib.xqy > > lib.xqy > ___module namespace lib = 'http://marklogic.com/MLU/xqdt/examples'; > declare function lib:user(){ > xdmp:get-current-user() > }; > and when I am importing the function in Main Module, I am > getting the > Invalid Import path, > > default.xqy > > > ___ import module namespace lib = > "http://marklogic.com/MLU/xqdt/examples" at > "C:\mls-projects\xquery\helloworld\lib.xqy"; > > lib:user() > > I am using Eclipse and the following are installed. > > Eclipse IDE for Java Developers 1.2.2.20100216-1730 > epp.package.java > MarkLogic XQDT Adapter Feature > 0.7.0.v201001160647-17R-AkF7B77JBZFJF7 > org.eclipse.wst.xquery.marklogic.feature.feature.group > XQuery Development Tools Feature > 0.7.0.v201001121118-47Z-BgJ9E99OEhJOJ9 > org.eclipse.wst.xquery.feature.feature.group > > > -- > Thanks, > SukuMaran > > > > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
