[MarkLogic Dev General] MarkLogic-related programmer post in Paris, France

2010-01-21 Thread Jakob Fix
Hi, some readers on this list may be interested to know that there's a job opening at the OECD in Paris, France, for an XML Web programmer who should, among other things, be knowledgable of MarkLogic. For the full details, please see here: http://www.oecd.org/hrm/vacancies (job number 3418).

[MarkLogic Dev General] Configuring entity enrichment

2010-01-21 Thread Andrew Welch
Hi, Is there a way to configure what the entity enrichment marks up? Two things mainly: 1. Can I tell it not to mark up certain types that I don't need enriched, such as urls? (looking for the right word there) 2. Given a type, such as e:date, can I configure what will match as a date?

Re: [MarkLogic Dev General] question about cts:search

2010-01-21 Thread Helen Chen
Hi Doug, I tried your query, I think when the xpath returns mode than one node, it will fail, but if I add for loop to it , it works fine. I think the trouble for me now is: everyone thinks putting the function base-uri(), document-uri() or xdmp:node-uri() at the end of xpath should

Re: [MarkLogic Dev General] question about cts:search

2010-01-21 Thread Helen Chen
Hi Florent, based on document http://developer.marklogic.com/pubs/4.1/apidocs/AccessorBuiltins.html#fn :base-uri base-uri() returns xs:anyURI. and in documetn http://www.w3.org/TR/xpath-functions/#func-base-uri it also returns xs:anyURI. Maybe I missed something in this problem, I checked

RE: [MarkLogic Dev General] Configuring entity enrichment

2010-01-21 Thread Danny Sokolsky
Hi Andrew, You can use cts:entity-highlight to customize how you do your markup. It is very similar to cts:highlight, and gives you lots of control as to what to output. If you look at the code for entity:enrich, you will notice it uses cts:entity-highlight. Using cts:entity-highlight, you

RE: [MarkLogic Dev General] intersect? nodes

2010-01-21 Thread Paul M
/20100121/bcf23af3/attachment-0001.html -- Message: 4 Date: Thu, 21 Jan 2010 09:35:48 -0800 From: Danny Sokolsky danny.sokol...@marklogic.com Subject: RE: [MarkLogic Dev General] intersect? nodes To: General Mark Logic Developer Discussion     general

Re: [MarkLogic Dev General] content transformations and RecordLoader (via content_factory ?)

2010-01-21 Thread Michael Blakeley
Paul, You can use the CONTENT_FACTORY_CLASSNAME=com.marklogic.recordloader.xcc.XccModuleContentFactory trick to perform arbitrary processing in XQuery. Whether you call that pre-processing or not is up to you :-). In your particular situation, though, an XccContentFactory may not be

Re: [MarkLogic Dev General] content transformations and RecordLoader (via content_factory ?)

2010-01-21 Thread Michael Blakeley
I should add that plug-in LoaderInterface implementations are not documented, because I still consider them to be experimental. However, it's simple enough to configure via LOADER_CLASSNAME, and fairly simple to build by looking at the existing FileLoader.java and Loader.java source code, as

[MarkLogic Dev General] Problem with ML 4.1-4 and MLJAM

2010-01-21 Thread Neil Bradley
Hi, I am using 4.1-1 and do not have a problem. My client is using 4.1-4 and gets the following error, which I have pinpointed to the MLJAM function here (the second replace): define function jam:_escape-string( $s as xs:string ) as xs:string { (: These replaces funny because arg2

Re: [MarkLogic Dev General] question about cts:search

2010-01-21 Thread Helen Chen
Hello everyone, I installed Marklogic 4 and tested the query, now the query works with all the functions at the end of the xpath in my case, like base-uri(.), document-uri(fn:root(.)) and xdmp:node-uri(.) and for base-uri() and document-uri(fn:root()), they don't even need to dot .

RE: [MarkLogic Dev General] Problem with ML 4.1-4 and MLJAM

2010-01-21 Thread Danny Sokolsky
Hi Neil, I believe there was an incompatibility with mljam that has since been fixed. In 4.1, there were a lot of regex fixes, and the old mljam code would throw this exception (\ is an invalid regexp). The latest version of mljam fixed this and the function now looks like this:

[MarkLogic Dev General] Too many open files in ML Server 4.1.4 / XP

2010-01-21 Thread Lee, David
I'm experimenting with bulk-loading XML files by spawning background tasks to load a set of files. I ran into this just now .. 2010-01-21 16:42:15.718 Notice: TaskServer: SVC-FILOPN: xdmp:document-load(H:\MarkLogic\NDC/249106.xml, options

Re: [MarkLogic Dev General] Problem with ML 4.1-4 and MLJAM

2010-01-21 Thread Jason Hunter
Hi Neil, Your client should upgrade their MLJAM library to 1.2.1 which fixes this. You probably already did, which is why you don't have a problem. http://xqzone.marklogic.com/svn/mljam/releases/ -jh- On Jan 21, 2010, at 1:34 PM, Neil Bradley wrote: Hi, I am using 4.1-1 and do not have

RE: [MarkLogic Dev General] Too many open files in ML Server 4.1.4 / XP

2010-01-21 Thread Geert Josten
Hi David, Perhaps you are opening many documents in one batch? How many files are there in $files? Kind regards, Geert Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850

Re: [MarkLogic Dev General] question about cts:search

2010-01-21 Thread Florent Georges
Helen Chen wrote: Hi, and in documetn http://www.w3.org/TR/xpath-functions/#func-base-uri it also returns xs:anyURI. Yes you're right. Weird, I first wrote my response, then double checked in this same document and added the note about xs:string... I guess I was not really awake at that

RE: [MarkLogic Dev General] Too many open files in ML Server4.1.4/ XP

2010-01-21 Thread Geert Josten
Hi David, I can't remember, I think I did 500 or 1000 I figured more the better so it would use less tasks ... (but too many and it would time out). Sorry, you already mentioned that.. But doesn't this imply that xdmp:document-load() doesnt close the file when its done. ?? Yeah, doesn't

RE: [MarkLogic Dev General] Problem with ML 4.1-4 and MLJAM

2010-01-21 Thread Neil Bradley
Jason, I have solved the problem, but I it is wrong to say this is a problem with MLJAM as such. In fact, I had NOT updated my version, and the older MLJAM still works fine without the fix in ML 4.1-1. I tried the following code in CQ under both versions of ML, and it works fine on my MK 4.1-1,

[MarkLogic Dev General] sort and group the records based on number sorting.

2010-01-21 Thread Arpitha Chittumalla
Hi All, I am learning XPath and Xquery, i am trying to implement the following query. But i need some inputs to get proper solution. here you go with sample XML : Book Unit Lesson 0.0.a /Lesson /UnitUnit Lesson 0.0.a.a /Lesson /UnitUnit Lesson 0.0.a.b /Lesson /UnitUnit Lesson 0.0.a.c /Lesson