At 2010-03-02 16:41 +0000, Andrew Welch wrote:
Hi,

It seems that everything you can do through the admin screen you can
do through a query... so rather give the customer a list of steps to
follow (create http server, create webdav server etc), I can shield
them from the admin screens and give them a query to run instead.

The question is, what is the user-friendliest way for them to run that
xquery, when the person installing the application is likely to know
very little about MarkLogic?

Is using the Docs dir the best way:

1) Install MarkLogic
2) copy the "install.xqy" to [install dir]/Docs
2) navigate to [hostname]:8000/install.xqy

...or is there another way?

In the classroom I use "curl" to submit a composed query to "/use-cases/eval2.xqy", taking advantage of the ";" extension in "1.0-ml" to put multiple independent queries in the single submitted file.

I compose the query using XSLT and command-line arguments, synthesizing the required load scripts by reading the contents of my exercise directories, producing the composed query that is then submitted to the server.

Students merely install Mark Logic and then run the loading environment batch file in a very turnkey fashion.

It does, however, expose the administration username and password in the synthesized batch file that invokes curl ... so it isn't a production approach.

This was a very helpful suggestion from one of my students.

I hope this helps.

. . . . . . . . . . . Ken


--
XSLT/XQuery training:      after http://XMLPrague.cz 2010-03-15/19
XSLT/XQuery training:         San Carlos, California 2010-04-26/30
Principles of XSLT for XQuery Writers: San Francisco,CA 2010-05-03
XSLT/XQuery training:                 Ottawa, Canada 2010-05-10/14
XSLT/XQuery/UBL/Code List training: Trondheim,Norway 2010-06-02/11
Vote for your XML training:   http://www.CraneSoftwrights.com/q/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/q/
G. Ken Holman                 mailto:[email protected]
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/q/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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

Reply via email to