Hi,

I had a query regarding xdmp:spawn().

xdmp:spawn( $path as xs:string, [$vars as item()*], [$options as node()?] )

Now I path I gave my file name I wanted to execute and passed all the necessary 
variables. In options I gave the root from where to pick up my file. But the 
issue I am facing now is that my file is internally calling another file which 
is present in another folder that is outside my root folder. And because of 
that my spawn query does not work.

Query- xdmp:spawn("/hello.xqy",
(xs:QName('search'),"<SearchFields><field><name>inputtext1</name><dictionaries>1234
 
</dictionaries><spelldictionaries>Yash_Spell</spelldictionaries><search>the</search></field></SearchFields>"),<options
 xmlns="xdmp:eval">
          <modules>{/spell}</modules>

          
<root>http://example.com/application/yash/</root<http://example.com/application/yash/%3c/root>>
         </options>)

Now my hello.xqy file is calling another file hello1.xqy that is kept in 
http://example.com/application/yash1.  So the query gives me an error saying 
hello1.xqy not found. Is there anything that can be done for this?

Thanks
Amit


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are 
not
to copy, disclose, or distribute this e-mail or its contents to any other 
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken
every reasonable precaution to minimize this risk, but is not liable for any 
damage
you may sustain as a result of any virus in this e-mail. You should carry out 
your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this 
e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to