[MarkLogic Dev General] Can't delete security collection(s) with same URI

2011-03-10 Thread Jagannath Saha
Hi, Our CPF code in a "race-condition" created two collections with same URI. Now, we are not able to access security/collections from Admin console. It's giving the following error. 500: Internal Server Error XDMP-AS: (err:XPTY0004) get-collection($uri) -- Invalid coercion: (fn:doc(" http://mark

Re: [MarkLogic Dev General] Royal Road to CPF using XSLT?

2011-03-10 Thread Keith L. Breinholt
There is one caveat to using pre-commit triggers with WebDAV. When the Windows WebDAV client writes a file it first writes a zero length file and then does an update to the zero length file with the real contents. So as long as you are not using Windows WebDAV to load your content using a prec

Re: [MarkLogic Dev General] Royal Road to CPF using XSLT?

2011-03-10 Thread Ron Hitchens
You should certainly look at Information Studio, but I'm unfamiliar with it so I will ignore it for now. Assuming you're on 4.2 (and don't want to use IS) you wouldn't need full-blown CPF. You could do it with a simple trigger. When a document is inserted in the appropriate directory

Re: [MarkLogic Dev General] Royal Road to CPF using XSLT?

2011-03-10 Thread Wayne Feick
You might also consider a precommit trigger. David Sewell wrote: To paraphrase Euclid, I'm guessing there's no royal road to auto-applying XSLT to a document at load time into the database? Our use case is simply that for a given directory in one of our databases, we want to run all XML files

Re: [MarkLogic Dev General] Royal Road to CPF using XSLT?

2011-03-10 Thread David Sewell
Yes, we're using MLS 4.2, and are using Information Studio in the context of a couple new projects, but have older customary workflows for getting documents into the database using other methods. So the question I guess will be whether to shift the workflow or to design a custom CPF pipeline that w

Re: [MarkLogic Dev General] Royal Road to CPF using XSLT?

2011-03-10 Thread Danny Sokolsky
Hi David, My advice to you is this: don't be afraid of CPF. Read up on the concepts, then try the sample in this chapter: http://docs.marklogic.com/4.2doc/docapp.xqy#display.xqy?fname=http://pubs/4.2doc/xml/cpf/quickStart.xml Then see if you can modify that sample to use XSLT instead. Once yo

Re: [MarkLogic Dev General] Royal Road to CPF using XSLT?

2011-03-10 Thread Murray, Gregory
David, Are you using MLS 4.2? I'm assuming not -- otherwise you would have already tried Information Studio, which can run XSLT as part of document loading. Greg Gregory Murray Digital Library Application Developer Princeton Theological Seminary Library On Mar 10, 2011, at 4:05 PM, David Sewel

[MarkLogic Dev General] Royal Road to CPF using XSLT?

2011-03-10 Thread David Sewell
To paraphrase Euclid, I'm guessing there's no royal road to auto-applying XSLT to a document at load time into the database? Our use case is simply that for a given directory in one of our databases, we want to run all XML files through a particular XSLT stylesheet. We have managed to coexist with

[MarkLogic Dev General] cts:element-value-match Only Returns Results For English Documents

2011-03-10 Thread Curtis Wilde
I have content in several languages, annotated with "xml:lang" so that marklogic will handle them appropriately. The issue I'm running into is that cts:element-value-match only matches values on documents that have either xml:lang="eng", or those that are Russian or Ukrainian (I think these two ar

Re: [MarkLogic Dev General] Stack overflow

2011-03-10 Thread Colleen Whitney
Judy, that bug was present in 4.1-7, but fixed in 4.1-8 (the current 4.1-x version is 4.1-9). If you upgrade, you should not see the error. --Coleen From: general-boun...@developer.marklogic.com [general-boun...@developer.marklogic.com] On Behalf Of ju

Re: [MarkLogic Dev General] query priority

2011-03-10 Thread Michael Sokolov
Thanks for the replies. More resources (separate host) is of course the ideal solution, but I'm trying to explore what we can do in order to share the resources we have at our disposal in a better way. It's possible we could delay some requests, but since this is a site used by a large number

Re: [MarkLogic Dev General] query priority

2011-03-10 Thread Geert Josten
Hi Mike, To my knowledge MarkLogic Server doesn't support priorities in request queue nor in task queue. You could apply the approach described by Tim to the request queue, but spawning them to the task server might be better. You could also consider having a separate host (or cluster) to take