Cannot install book code using eXist
Juan E. Murillo
1 post
|
After downloading the example files for the book, I followed the instructions to set up the xQuery code with eXist but I cannot get the data to load to the database. I used eXist because there is no downloadable version of marklogic for Mac OS X (the operating system I use). I get the following error message when loading default.xqy into the browser and Error found Could not locate collection: /pragmatic/code/marklogic [at line 20, column 9] XQuery Stack Trace |
Pete Aven
1 post
|
Hi Juan, I had the same issue. I was able to create the collections using the exist sandbox (http://localhost:8080/exist/sandbox/sandbox.xql) xmldb:create-collection (”/”, “marklogic”) Once I created the collections, by evaluating the above, I could then run loaddata.xqy successfully and was in business. |
Ron Hitchens
1 post
|
OK, so I made a last minute change to where the source code is loaded and missed an update to the eXist loader script. I’ve updated the sources in Pragmatic’s svn repository, but if you’ve already downloaded the source-ball then you may also encounter this issue. You can fix it by adding a single line to the file pragmatic/exist/loaddata.xqy in the unpacked .zip file. At about line 20, add a line to the function local:load-dir so that it looks like this (don’t forget the comma):
That should do it – just hit the Load button again. Sorry for the hassle. |
3 posts, 3 voices
