Or you can write a java wrapper and generate all your xquery with that -
works for us :)
 
(ducking the rotten fruit)
 
-Mike


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Jason Hunter
Sent: Thursday, June 10, 2010 4:44 PM
To: General Mark Logic Developer Discussion
Subject: Re: [MarkLogic Dev General] Import Namespace from config file


If you just want a namespace without typing it in every module, you can add
it via the admin screens to the app server or the group.  I often do that
for large projects, just configure the namespaces once and for all in that
central place. 

-jh-

On Jun 10, 2010, at 8:50 AM, Danny Sokolsky wrote:



You cannot import namespace prefix bindings, to my knowledge.  XQuery does
not allow it.  The namespace prefix is just a short-hand for the namespace,
and it is only available in the current context. 

-Danny

From: [email protected]
[mailto:[email protected]] On Behalf Of Pradeep
Maddireddy
Sent: Thursday, June 10, 2010 7:02 AM
To: [email protected]
Subject: [MarkLogic Dev General] Import Namespace from config file
Hi..!
 We can have some common varibales declared in a config.xqy file and import
them in diffrent xqy files and use.
import module namespace  config = "http://cpe.com/config"; at "config.xqy"; 
$config:CATG_DOC_URI
How can we acheive the same for a namespace
I want to be able to declare a namespace in config file and use it in all
other xqy files.Is it possible?
declare namespace htcinc="http://www.htcinc.com/cpe/";;
Thanks
Pradeep Maddireddy
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general



_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to