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
