You can use xdmp:document-load() with cqsh but the file would have to be located on the server. The only option currently supported in cqsh for loading local files is passing in a uri.
cqsh --load -n '/my/doc/uri' /tmp/localfile.xml or you can give a uri prefix for loading multiple files: cqsh --load -i '/docs/' /tmp/*.xml cqsh is still using the old XDBC libraries under the covers. I'm hoping to update cqsh to use XCC which has a much better interface for document loading. What options would you like to see added to cqsh load? --Andy > Using the cqsh tool, is it possible to load a local file using > xdmp:document-load() within a query, or is the only loading > functionality that supplied by the "load" command or > "cqsh --load file"? > > The built-in cqsh load command doesn't provide for passing options in > the way that xdmp:document-load() does. > > DS > -- > David Sewell, Editorial and Technical Manager > ROTUNDA, The University of Virginia Press > PO Box 400318, Charlottesville, VA 22904-4318 USA > Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903 > Email: [EMAIL PROTECTED] Tel: +1 434 924 9973 > Web: http://rotunda.upress.virginia.edu/ > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general > > _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
