You need to declare the variable in the module you are invoking as external. Then you can pass the QName/value pairs as the second arg to xdmp:invoke. The path needs to be the path to the xqy file relative to the app server root. See the second example in the xdmp:invoke API documentation for an example:
http://developer.marklogic.com/pubs/4.1/apidocs/Ext-6.html#xdmp:invoke -Danny -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Pradeep Maddireddy Sent: Monday, April 19, 2010 8:39 AM To: General Subject: [MarkLogic Dev General] Invoke xqy file with external variable from CQ Hi..! How can we invoke an xqy file with external variable from CQ. for example test.xqy has the following query xquery version "1.0"; declare variable $count as xs:integer for $i in 1 to $count return $i Thanks Pradeep Maddireddy _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
