Hi,

This is an error in the doc.  That should say "HTTP Server" instead of
"WebDAV server".  The idea is that you have to set your modules database
(the db that stores the XQuery code being executed) to be the same
database as the database in which your content is stored.  

Here is how that procedure should look:

To run this directory browser application, perform the following:

1. Create an HTTP Server and configure it as follows:

a) Set the Modules database to be the same database as the Documents
database. For example, if the database setting is set to the database
named "my-database", set the modules database to "my-database" as well.

b) Set the HTTP Server root to http://myDirectory/, or set the root to
another value and modify the $rootdir variable in the directory browser
code so it matches your HTTP Server root.

c) Set the port to 9001, or to a port number not currently in use.

2) Copy the sample code into a file named browser.xqy. If needed, modify
the $rootdir variable to match your HTTP Server root. Using the
xdmp:modules-root function, as in the sample code, will automatically
get the value of the App Server root.

3) Load the browser.xqy file into the Modules database at the top level
of the HTTP Server root. For example, if the HTTP Server root is
http://myDirectory/, load the browser.xqy file into the database with
the URI http://myDirectory/browser.xqy. You can load the document either
via a WebDAV client (if you also have a WebDAV server pointed to this
root) or with the xdmp:document-load function.

4) Make sure the browser.xqy document has execute permissions. You can
check the permissions with the following function:

xdmp:document-get-permissions("http://myDirectory/browser.xqy";)

This command returns all of the permissions on the document. It should
have "execute" capability for a role possessed by the user running the
application. If it does not, you can add the permissions with a command
similar to the following:

xdmp:document-add-permissions("http://myDirectory/browser.xqy";, 
                            xdmp:permission("myRole", "execute"))

where myRole is a role possessed by the user running the application.

5) Load some other documents into the HTTP Server root. For example,
drag and drop some documents and folders into a WebDAV client (if you
also have a WebDAV server pointed to this root).

6) Access the browser.xqy file with a web browser using the host and
port number from the HTTP Server. For example, if you are running on
your local machine and you have set the HTTP Server port to 9001, you
can run this application from the URL http://localhost:9001/browser.xqy.

You should see links to the documents and directories you loaded into
the database. If you did not load any other documents, you will just see
a link to the browser.xqy file.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Florent
Georges
Sent: Sunday, September 07, 2008 5:11 AM
To: MarkLogic General ML
Subject: [MarkLogic Dev General] Set the Modules and Documents DB to be
thesame?

  Hi,

  In the dev_guide.pdf (3.2, Feb. 2008), in "15.5.2 Setting Up the
Directory Browser" p. 130, one can read:

    1. Create a WebDAV server and configure it as follows:
        a. Set the Modules database to be the same database as the
           Documents database.

  I don't really understand what that means.  I looked for details in
that guide as well as in the admin's guide, but didn't find anything.
Would someone have a pointer?

  Regards,

--drkm

























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

Reply via email to