I have some xquery modules in a tree hierarchy in the Modules database. Every page works fine but one. This page includes modules like this:
import module namespace core = "http://epocrates.com/marklogic/modules/core" at "../../../modules/core.xquery" ; import module namespace mesh = "http://epocrates.com/marklogic/modules/mesh" at "../../../modules/mesh.xquery" ; The file (absolute) this is in is /Clinical/html/ClinicalBrowser/mesh/mesh_descriptor.xquery The included files are in /Clinical/modules/core.xquery /Clinical/modules/mesh.xquery The HTTP Server is mapped to /Clinical/ as its root directory. In this *one page only* I get errors 2010-07-30 13:50:47.500 Notice: Clinical_APP: XDMP-TEXTNODE: /html/modules/mesh.xquery -- Server unable to build program from non 2010-07-30 13:50:47.500 Notice: Clinical_APP: XDMP-TEXTNODE: /html/modules/core.xquery -- Server unable to build program from non However if I cange this *one page only* to use import module namespace core = "http://epocrates.com/marklogic/modules/core" at "/modules/core.xquery" ; import module namespace mesh = "http://epocrates.com/marklogic/modules/mesh" at "/modules/mesh.xquery" ; It works fine. (without touching permissions on anything). I have several other pages in the same directory which use the previous relative paths and they all work. Any ideas how a single xquery file in the same diretory will mis-calculate the relative path to a imported module ? Note that the absolute path should be /Clinical/modules/core.xquery and the App relative path should be /modules/core.xquery But the error is showing that ML is looking in /html/modules/core.xquery it appears to be missing looking at one of the "../" directories ... but only in this file !!! ---------------------------------------- David A. Lee Senior Principal Software Engineer Epocrates, Inc. [email protected] <mailto:[email protected]> 812-482-5224
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
