RE: [MarkLogic Dev General] Scaffolding

2008-09-25 Thread Geert Josten
Hi Eric, I think the loss of attributes is being caused by the fact you are actually recreating the complete element when you try to update the text, without copying the original attributes while doing so. :-) Pretty simple to fix I guess, but I think it is better to change your path

RE: [MarkLogic Dev General] namespace problem

2008-09-30 Thread Geert Josten
Hi Mindie, Your code seems to contain a typo. You say you define getTeasers locally, and you do so with the local prefix. But in the following code you are calling getTeasers with the common prefix. I am not sure whether that should make any difference, and it might not be relevant to your

RE: [MarkLogic Dev General] The application failed to initializeproperly after setup

2008-11-04 Thread Geert Josten
Open the admin page and click 'confirm'.. ;-) 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 1199 http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of

RE: [MarkLogic Dev General] The application failed to initializeproperly after setup

2008-11-04 Thread Geert Josten
dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. From: Florent Georges [mailto:[EMAIL PROTECTED] Sent: dinsdag 4 november 2008 16:04 To: Geert Josten Cc: MarkLogic General ML Subject: Re: [MarkLogic Dev General

[MarkLogic Dev General] Empty argument fails silently?

2008-11-06 Thread Geert Josten
Hi, When passing an empty sequence where a node() is expected, the function does not execute, nor is a 'coercion' error is raised either. Is it supposed to work like this? With following example I would expect either the string 'blabla' or an error, but instead I am getting 'bla'. -

RE: [MarkLogic Dev General] Empty argument fails silently?

2008-11-06 Thread Geert Josten
If you do not wish to have this behavior, you can disable function mapping by adding the following to your XQuery module's prolog. declare namespace xdmp=http://marklogic.com/xdmp;; declare option xdmp:mapping false; Wayne. Should one add those lines to the file that

RE: [MarkLogic Dev General] Empty argument fails silently?

2008-11-06 Thread Geert Josten
Feick Sent: donderdag 6 november 2008 20:15 To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] Empty argument fails silently? The caller. On Thu, 2008-11-06 at 20:11 +0100, Geert Josten wrote: If you do not wish to have this behavior, you can disable

RE: [MarkLogic Dev General] Embedding the selected attribute inanHTML select list with xquery

2008-11-11 Thread Geert Josten
Hi Tim, For the sake of completeness, there are basically two ways of constructing attribute nodes: Literal: myatt=myvalue example: myelem myatt=myvalue / Computed: attribute myatt {myvalue} or attribute {myatt} {myvalue}

RE: [MarkLogic Dev General] xdmp:http-get and gzip

2009-01-13 Thread Geert Josten
Hi Eric, Did you have a look at the man pages of Tomcat? Google turned up with this: http://tomcat.apache.org/tomcat-4.1-doc/config/coyote.html Which mentioned two parameters that might be of interest to you: compressableMimeType and compression Kind regards, Geert Drs. G.P.H. Josten

[MarkLogic Dev General] Testing match patterns

2009-01-28 Thread Geert Josten
Hi all, I was just wondering if there was anyone who ever tried to test match patterns in Xquery or MarkLogic? If not, does anyone have an idea? I don't really need this functionality, it is more out of interest whether it would be possible. One solution I can think of, is just prepending //

RE: [MarkLogic Dev General] embedded javascript problem convertingto lt; even though I'm using a CDATA section

2009-01-30 Thread Geert Josten
It is nothing fancy, that way you simply write '//' into the contents of the script element, which is JavaScript line comment marker.. :-) 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

RE: [MarkLogic Dev General] uri-is-file for modules in database

2009-02-09 Thread Geert Josten
Erik, Xquery files are stored just like other files, but in a different database. Try using something like: xdmp:eval( ' boolean(doc(here.xqy)) ', (), options xmlns=xdmp:eval database{xdmp:database('Modules')}/database /options) Mind though, the user executing

RE: [MarkLogic Dev General] Atomic and exclusive lock on documents(accross a cluster)

2009-02-09 Thread Geert Josten
Hi Danny, Tjerk is my colleague. We already have something like that, using the owner field of locks themselves, as we needed locks over multi-transactions anyhow. But we need absolute 100 percent guarantee that if two requests are challenging for an exclusive lock on the same document, only

RE: [MarkLogic Dev General] Atomic andexclusivelockondocuments(accross a cluster)

2009-02-11 Thread Geert Josten
...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Tuesday, February 10, 2009 1:37 PM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] Atomic andexclusivelockondocuments(accross a cluster) Yes, and to be clear, what I was talking about was to *not* use

RE: [MarkLogic Dev General] Atomicandexclusivelockondocuments(accross a cluster)

2009-02-11 Thread Geert Josten
for. Hope that helps, -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Wednesday, February 11, 2009 12:06 AM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev

RE: [MarkLogic Dev General] characters transformed into URL code inbrowser address bar

2009-02-19 Thread Geert Josten
Hi Eric, I would suspect your browser, rather than MarkLogic Server. Note that MarkLogic Server decodes request parameters automatically, so even if it get's encoded, once you retrieve it with xdmp:request-get-field('x'), it will already be decoded, so you would not even notice this within

RE: [MarkLogic Dev General] dynamic module import

2009-02-19 Thread Geert Josten
Hi Eric, I am sure there are other ways to achieve what you want, but if you really would like to do something like that, you could always resort to xdmp:eval (most likely with isolationdifferent-transaction/isolation within the options). Be aware of the transaction mechanism if you start

RE: [MarkLogic Dev General] dynamic module import

2009-02-23 Thread Geert Josten
of the do-update() function, which is an update statement? What exactly constitutes a unit of XQuery code? Actually, I can test this myself using xdmp:request-timestamp()! EP Geert Josten wrote: Hi Eric, I am sure there are other ways to achieve what you want, but if you

RE: [MarkLogic Dev General] dynamic module import

2009-02-23 Thread Geert Josten
Maybe it is a bit harsh, but I think I stand by it. I know what deadlocks are, and now how to avoid them in MarkLogic Server. I just think that in a service-oriented software package that, by design, will crash in the event of X (taking all other App Servers, WebDAV and XCC connections with

[MarkLogic Dev General] Xdmp:default-permissions() not working?

2009-02-23 Thread Geert Josten
Hi there, I am running MarkLogic Server 4.0-1 on a WinXP laptop. I have added a user to the security database in MarkLogic Server using the Admin interface and the describe feature tells me that this user has default permissions (inherited from a custom defined role). But an empty sequence is

RE: [MarkLogic Dev General] Xdmp:default-permissions() not working?

2009-02-24 Thread Geert Josten
Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: dinsdag 24 februari 2009 21:38 To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] Xdmp:default-permissions() not working

RE: [MarkLogic Dev General] Xdmp:default-permissions() not working?

2009-02-25 Thread Geert Josten
to the test role as well.. Kind regards, Geert -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: dinsdag 24 februari 2009 23:59 To: General Mark Logic Developer Discussion Subject: RE

RE: [MarkLogic Dev General] Xdmp:default-permissions() not working?

2009-02-25 Thread Geert Josten
...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: dinsdag 24 februari 2009 23:59 To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] Xdmp:default-permissions() not working? Good news, I have deleted all

RE: [MarkLogic Dev General] xdmp:http-get() and multipart response

2009-03-04 Thread Geert Josten
Hi Florent, The response body is merely an unparsed content string, not real binary. If you know for sure that it is actually XML, you can try to use xdmp:unquote($response[2]), that just might do the trick. Kind regards, Geert Drs. G.P.H. Josten Consultant http://www.daidalos.nl/

RE: [MarkLogic Dev General] Troubleshoot xdmp:http-delete()

2009-03-05 Thread Geert Josten
Hi Taras, I think you need to make sure whether it is the call with xdmp:http-delete() that is causing the problem, or that it is a syntax problem in the xquery that does the call. Try putting a try-catch clause around the xdmp:http-delete, something like: try { xdmp:http-delete(...) }

RE: [MarkLogic Dev General] Edit library modules through WebDAV?

2009-03-06 Thread Geert Josten
Hi Florent, The WEBDAV servers accesses the database connected to it, not the file system. So indeed you will have to move your modules to the Modules database and add a WEBDAV server connected to that one. To my personal opinion you are better off putting the libraries in the Modules

RE: [MarkLogic Dev General] Edit library modules through WebDAV?

2009-03-06 Thread Geert Josten
; Geert Josten Subject: Re: [MarkLogic Dev General] Edit library modules through WebDAV? Geert Josten wrote: To my personal opinion you are better off putting the libraries in the Modules database. Note that you can use the Security layer of MarkLogic Server to apply that to the modules

RE: [MarkLogic Dev General] Edit library modules through WebDAV?

2009-03-06 Thread Geert Josten
worden ontleend. From: Florent Georges [mailto:li...@fgeorges.org] Sent: vrijdag 6 maart 2009 15:23 To: General Mark Logic Developer Discussion; Geert Josten Subject: Re: [MarkLogic Dev General] Edit library modules through WebDAV? Geert Josten wrote: If you are using CQ for development

RE: [MarkLogic Dev General] Undefined function error()

2009-03-07 Thread Geert Josten
FWIW, I cut and paste the following prolog into all my queries. xquery version 1.0-ml; declare default function namespace http://www.w3.org/2005/xpath-functions;; declare option xdmp:mapping false; The first line assures I'm using standard XQuery (with useful extensions

RE: [MarkLogic Dev General] How to identify a absence of complex node...

2009-03-12 Thread Geert Josten
Deepak, The suggestion by Florent is good. You are not required to use searching to get quick results. Plain Xpath can be quick in MarkLogic just as well. Next to this, you are explicitly testing for a 'dd' element. To be more precise, you are testing for all child elements exactly, while

[MarkLogic Dev General] Searching on document properties?

2009-03-16 Thread Geert Josten
Hi, Is there a way to search on document properties using cts:search? I would like to combine restrictions on document properties with other criteria. I have now added a predicate filter on the search result, but that doesn't look right nor efficient. Kind regards, Geert Drs. G.P.H. Josten

RE: [MarkLogic Dev General] Searching on document properties?

2009-03-16 Thread Geert Josten
Of Geert Josten Sent: maandag 16 maart 2009 19:14 To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] Searching on document properties? Hi Mike, It is fixed filter on the search result, excluding document that have a certain status marked with a document

RE: [MarkLogic Dev General] Searching on document properties?

2009-03-16 Thread Geert Josten
terms are indexed together. See also http://markmail.org/thread/op3dsj2seetrodvk -- Mike On 2009-03-16 10:00, Geert Josten wrote: Hi, Is there a way to search on document properties using cts:search? I would like to combine restrictions on document properties with other criteria. I

RE: [MarkLogic Dev General] multiple documents - same URI???

2009-03-18 Thread Geert Josten
Hi Wyatt, Are you certain it is both the root of the same document? Note that the doc function allows a sequence as first argument, returning the document node of each uri in that sequence (for those that exist).. I am using MarkLogic Server 4.0-1 and it does not allow me to insert or load

RE: [MarkLogic Dev General] multiple documents - same URI???

2009-03-18 Thread Geert Josten
The signature for fn:doc() is fn:doc([$uri as xs:string*]) as document-node()*. Therefore, since count(doc(mydoc)) is returning 2, there must be two document-node()s with the same uri. Are you sure your $requestURI variable contains only one value? Kind regards, Geert Drs. G.P.H. Josten

RE: [MarkLogic Dev General] Unexpected results when using a filterexpression

2009-03-18 Thread Geert Josten
Hi Stewart, It is a mistake made in XSLT as well. The positional predicate operates on document order. Your expression is literally searching for any xh:a element that occurs as first xh:a element within its parent. That is quite something different then ($div//xh:a)[1].. :-) Best regards,

RE: [MarkLogic Dev General] problem in locking a document using xdmp:lock-acquire() function in marklogic - reg.,

2009-03-20 Thread Geert Josten
., Hi Geert Josten, I have tried all the options for the lock method, the doucment is locked, but still other user can able to update the document even though the lock is not yet released. xdmp:lock-acquire(harmonyUsers.xml, exclusive

RE: [MarkLogic Dev General] quick namespace question

2009-03-23 Thread Geert Josten
. Thanks, EP Geert Josten wrote: Or alternatively, and with less typing, do the evaluation outside the element constructor with the default namespace: let $doc := doc('/blah.xml') let $mytext := $doc/one/two/text() return a xmlns=http://myns; b{ $text }/b /a Kind

RE: [MarkLogic Dev General] Difference between eNode and Data Node

2009-03-24 Thread Geert Josten
-bounces@ developer.marklogic.com ] On Behalf Of Geert Josten Sent: Monday, March 23, 2009 12:59 PM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] Difference between eNode and Data Node Saptarshi, I am

RE: [MarkLogic Dev General] Difference between eNode and Data Node

2009-03-24 Thread Geert Josten
Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Tuesday, March 24, 2009 1:06 PM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] Difference between eNode and Data Node Hi

[MarkLogic Dev General] Importing xml with unpredictable encoding

2009-03-25 Thread Geert Josten
Hi, Is it correct that the MarkLogic built-in functions xdmp:document-load and xdmp:document-get do not respect the encoding specification in the XML declaration? They expect UTF-8 by default and otherwise try to consume the file with the encoding specified in the options. Is there a way to

RE: [MarkLogic Dev General] Importing xml with unpredictable encoding

2009-03-25 Thread Geert Josten
an encoding in a header of the document on its own, and will default to UTF-8. -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Wednesday, March 25, 2009 6:07 AM

RE: [MarkLogic Dev General] Importing xml with unpredictable encoding

2009-03-26 Thread Geert Josten
it. -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Wednesday, March 25, 2009 2:37 PM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] Importing

[MarkLogic Dev General] Finding subdirs in a database directory?

2009-03-26 Thread Geert Josten
Hi, I am using the directory facilities of MarkLogic Server to store documents with hierarchy. This works nice and all, allowing scoping search actions to subtrees very easily. But it would be nice to be able to provide some kind of directory listing as well. It is very easy to determin which

RE: [MarkLogic Dev General] Finding subdirs in a database directory?

2009-03-26 Thread Geert Josten
. There is likely a better way but this serves my purposes. Darin. -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, March 26, 2009 7:09 AM To: General Mark Logic Developer

RE: [MarkLogic Dev General] Finding subdirs in a database directory?

2009-03-26 Thread Geert Josten
be a function you can call on the 'properties' document to test whether it is for a directory or an actual document. -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, March 26

RE: [MarkLogic Dev General] Importing xml with unpredictable encoding

2009-03-26 Thread Geert Josten
://developer.marklogic.com/pubs/4.0/apidocs/Extension.html #xdmp:subbinary -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, March 26, 2009 3:58 AM To: General Mark

RE: [MarkLogic Dev General] issue with XPATH

2009-03-26 Thread Geert Josten
] issue with XPATH If both sides of the = are (unsorted) sequences, then is A=B in O((count(A)+count(B))^2)? Eric Geert Josten wrote: Pradeep, Yes, I think the result should be the same. It looks like the first approach is interpreted as (doc(..)//b)[position() = 2]. Eric

RE: [MarkLogic Dev General] issue with XPATH

2009-03-26 Thread Geert Josten
...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, March 26, 2009 5:14 PM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] issue with XPATH Pradeep, Yes, I think the result should be the same. It looks like

RE: [MarkLogic Dev General] issue with XPATH

2009-03-27 Thread Geert Josten
:) set4{ $xml//p[2] }/set4, (:set5 - This is the only one that should return a single node, p2. The XPath should return the second instance of all p descendants of $xml. :) set5{ $xml/descendant::p[2] }/set5 ) On Thu, 26 Mar 2009, Florent Georges wrote: Geert

RE: [MarkLogic Dev General] issue with XPATH

2009-03-28 Thread Geert Josten
] }/set5 ) On Thu, 26 Mar 2009, Florent Georges wrote: Geert Josten wrote: Though I was surprised, I now think MarkLogic Server is responding correctly. Sounds like a bug to me. If you look at the definition of a numeric predicate (http://www.w3.org/TR/xpath20/#id-predicates

RE: [MarkLogic Dev General] issue with XPATH

2009-03-28 Thread Geert Josten
surprising results which helped me come to this conclusion.. Kind regards, Geert -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: zaterdag 28 maart 2009 11:29 To: General Mark Logic

RE: [MarkLogic Dev General] stemmed searches

2009-03-30 Thread Geert Josten
I don't like this solution but can't think of anything else. Personally I think this is a poor feature of MarkLogic. Turning stemming on/off should not affect the content base searched. Everything should be searched, with content in the configured language gaining the benefits of stemming.

RE: [MarkLogic Dev General] stemmed searches

2009-03-30 Thread Geert Josten
...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Sewell Sent: 30 March 2009 14:56 To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] stemmed searches On Mon, 30 Mar 2009, Geert Josten wrote: I don't like

RE: [MarkLogic Dev General] Problem preserving whitespaceinanXML-to-XML xquery transform

2009-03-31 Thread Geert Josten
Hi, It might be interesting to look at the examples in paragraph 3.7.1.4 of the Xquery rec: http://www.w3.org/TR/xquery/#id-whitespace Note that these only concern direct element construction, not computed construction like you are using. Kind regards, Geert Drs. G.P.H. Josten Consultant

RE: [MarkLogic Dev General] XQuery help to COUNT multiple node

2009-04-01 Thread Geert Josten
Hi Deepak, Though I guess there are ways to test whether a certain element exists within a parent using cts function, it certainly doesn't provide features to count occurences of a child within a particular parent. To gather these parents or its children, you will still need an xpath

RE: [MarkLogic Dev General] Problem regarding adding prefixes to the xml nodes

2009-04-09 Thread Geert Josten
Hi, There are some design flaws in your code, from a brief look. I would expect non-element child nodes to get stripped from the result, I don't think you want that. Next to this, your addnamespace extracts the prefix from the node at hand, but none in your input has any. So I would expect

RE: [MarkLogic Dev General] Logging queries

2009-04-18 Thread Geert Josten
Mike, There is another alternative, but I am not sure it suits your purpose. It is the trace function, which causes 'event' messages to be written to the ErrorLog.txt (not the acceslog though). You can turn trace logging on and off at group level (Diagnostics configuration), but you can a)

RE: [MarkLogic Dev General] How to get the size of a particular file in marklogic server - reg.,

2009-04-29 Thread Geert Josten
/ Experience certainty.IT Services Business Solutions Outsourcing Geert Josten geert.jos...@daidalos.nl Sent by: general-boun...@developer.marklogic.com 04/29/2009 11:25 AM Please

RE: [MarkLogic Dev General] In oracle we can create sequence to generate a unique key(used as primary key) , Is there any function in Marklogic to create a unique id - reg.,

2009-05-05 Thread Geert Josten
Hi Santhosh, In XML databases there is no such thing as tables and record fields, so there is no such thing as a autonumber field concept. But there are other concepts that can be used to 'uniquely' identify content. Most importently, each document in the database has a uri, with which you

RE: [MarkLogic Dev General] How to do Transaction Management inMarklogic - reg.,

2009-05-05 Thread Geert Josten
Hi Santhosh, There should be explicit transaction management functions in the XCC library, but that requires a connection from Java or .Net. You can also put the update statements in one Xquery and call the Xquery through HTTP (or from XCC for the same matter). Statements in one Xquery file

RE: [MarkLogic Dev General] How to do Transaction Management inMarklogic - reg.,

2009-05-05 Thread Geert Josten
the transaction1.xml in the marklogic server. But acutally i do not what that to be created if any one request fails. I guess there is no option to propagate the transaction to both request. What is your idea? Thanks and Regards, Santhosh Rajasekaran Geert Josten geert.jos...@daidalos.nl Sent

[MarkLogic Dev General] RE: Connection Caching

2009-05-05 Thread Geert Josten
Hi David, I had been looking at the source code of performance-meters (see xqzone) recently, and found comments that the connection pooling is being handled transparently when creating a new session object. If I am right, then this means that if you want to allow multi-threading and parallel

RE: [MarkLogic Dev General] Comparision of values within the node (was: general@developer.marklogic.com)

2009-05-06 Thread Geert Josten
Hi Deepak, To my knowledge, you cannot express a comparison between node values in cts:query functions. You will have to search for documents containing these elements first with cts:search, and apply a XPath predicate on the resulting nodes, which restricts the results to the nodes that meet

RE: [MarkLogic Dev General] Comparision of values within the node (was: general@developer.marklogic.com)

2009-05-06 Thread Geert Josten
Geert Josten geert.jos...@daidalos.nl Sent by: general-boun...@developer.marklogic.com 05/06/2009 02:24 PM Please respond to General Mark Logic Developer Discussion general@developer.marklogic.com To General Mark Logic Developer Discussion general@developer.marklogic.com cc

RE: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL during reindexing

2009-05-26 Thread Geert Josten
Hi Harv, Did someone answer your question yet? I haven't seen any, so let me give it a shot. I am not certain what you mean by 10,000 Mb. Do you mean 10 thousand megabyte as average size of documents? That sounds as awfull lot. You might mean 10 thousand KILObyte, which sounds more

RE: [MarkLogic Dev General] Do Marklogic creates index for properties files? (i.e) while adding properties to a file.

2009-05-26 Thread Geert Josten
Hi Santhosh, As far as I understood properties are indexed automatically (requires no specific configuration), so accessing them should be as quick as any other fragment that has been indexed. Updating indexes whenever a document or its properties is updated is part of the transaction, so that

RE: [MarkLogic Dev General] Help debugging an error message

2009-05-26 Thread Geert Josten
Hi Tim, Might just be noise. Searching markmail turned up the following: http://markmail.org/message/capv6atdvvmirxeg 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

RE: [MarkLogic Dev General] updating lexicons when documentsaredeleted

2009-05-26 Thread Geert Josten
Hi Tim, I think that Danny means that deleted entries are only visible to users with admin role. For all other users it is as if they are simply not there. Just like when you inserted a document as admin without any document permissions, then only admin users can see those.. Kind regards,

[MarkLogic Dev General] RE: How to search plural documents by

2009-05-26 Thread Geert Josten
XPath expressions are evaluated against all documents in a MarkLogic database: /foo/bar Just for the record, the spec (http://www.w3.org/TR/xquery/#id-path-expressions) states the following: A / at the beginning of a path expression is an abbreviation for the initial step

[MarkLogic Dev General] RE: [MarkLogic Dev General]session.insertContentvsxdmp:document-insert

2009-05-28 Thread Geert Josten
Or putting or posting it to some Xquery behind a MarkLogic HTTP server that does the unquote for you would work as well. That way you don't depend on XCC library at all. One could debate about efficiency, but not requiring XCC to load the content might be useful in some cases. Kind regards,

[MarkLogic Dev General] RE: Saving a document with properties

2009-05-28 Thread Geert Josten
Hi Bob, I guess there is simply no other way. Just make sure you perform the two actions as part of the same transaction, by comma-separating them in a single newAdhocXquery call. Kind regards, Geert Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation

RE: [MarkLogic Dev General] RE: document-get() couldn't find theexisting file

2009-05-29 Thread Geert Josten
Hi Van, I guess you haven't reloaded the documents into the database. Document have to be delete and newly inserted to allow them to change from binary to xml format. Whether documents are binary, text or xml is determined at initial insert only. Kind regards, Geert Drs. G.P.H. Josten

RE: [MarkLogic Dev General] Building cts:searchquerieswithconditional logic

2009-06-01 Thread Geert Josten
Hi Tim, Shannon, A cts:query(()) might result in the same as cts:and-query(()). The result of the latter is described on http://developer.marklogic.com/pubs/4.0/apidocs/cts-query.html#cts:and-query Personally, but I am not an expert on this matter, I think cts:and-query(()) makes more sense.

[MarkLogic Dev General] RE: permissions in a pipeline

2009-06-02 Thread Geert Josten
Hi Bob, I observed similar anomalies as well before, but they disappeared after a restart of MarkLogic. 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

[MarkLogic Dev General] RE: permissions in a pipeline

2009-06-02 Thread Geert Josten
and adding then removing default permissions. Bob From: Geert Josten geert.jos...@daidalos.nl Subject: [MarkLogic Dev General] RE: permissions in a pipeline To: General Mark Logic Developer Discussion general@developer.marklogic.com Message-ID

RE: [MarkLogic Dev General] Adding processing instructions to thedocument node

2009-06-10 Thread Geert Josten
Steward, Just to add: MarkLogic doesn't need this XML declaration in its storage itself. But I can imagine that you may need it once extracted a document out of MarkLogic. You can add this XML declaration to the response message when sending back the contents over HTTP for instance. Danny

[MarkLogic Dev General] RE: Making documents and directories unqueryable

2009-06-16 Thread Geert Josten
Hi Ivan, Though there is no explicit way to hide a document, I guess there are plenty ways to achieve what you are looking for. The most important question is: who are you trying to hide the documents for? Are those auxiliary files that have no real contents? Or are those sensitive files,

RE: [MarkLogic Dev General] Frequency of co-occurrences usingcts:element-attribute-value-co-occurrences()

2009-06-16 Thread Geert Josten
Hi Tim, I'm not an expert on co-occurrences, but it sound a bit like you forgot to add the query parameter to the cts:frequency call. If that is not the problem, can you include sample code to demonstrate your issue? Kind regards, Geert Drs. G.P.H. Josten Consultant

RE: [MarkLogic Dev General] xdmp:http-head questions

2009-06-24 Thread Geert Josten
Hi Jakob, You have to take the namespace into account. Declare the namespace and prefix the element names in your xpath, or prepend *: to the element names.. Kind regards, Geert Drs. G.P.H. Josten Consultant Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk

RE: [MarkLogic Dev General] force a buffer write?

2009-06-25 Thread Geert Josten
Hi Jakob, You are looking for unbuffered response streams, but sending of the response is handled fully by the HTTP server. I don't believe you can influence that. Giving it some more thought, I am afraid that allowing unbuffered responses would break the idea of transactions. You don't want

RE: [MarkLogic Dev General] force a buffer write?

2009-06-25 Thread Geert Josten
, 2009 at 08:11, Geert Josten geert.jos...@daidalos.nl wrote: Hi Jakob, You are looking for unbuffered response streams, but sending of the response is handled fully by the HTTP server. I don't believe you can influence that. Giving it some more thought, I am afraid that allowing

RE: [MarkLogic Dev General] how to debug?

2009-06-26 Thread Geert Josten
As stuff gets more complex (modules, etc.), cq seems to hit its limits (or is it me?). I therefore hoped that OxygenXML would let me debug easily, but there as well the debugger cannot find a module that is referenced like this in the main module: import module namespace utils =

RE: [MarkLogic Dev General] MarkLogic Version Controlling

2009-07-04 Thread Geert Josten
Hi Elangovan, The broadcast about the release of 4.1 mentions a Library Services API, including document versioning: http://markmail.org/message/4tz47tivlocua3mb I expect you can find more details about it on the MarkLogic website. Kind regards, Geert Drs. G.P.H. Josten Consultant

[MarkLogic Dev General] RE: Accessing urls on HTTPS servers (SOLVED)

2009-07-09 Thread Geert Josten
Never mind.. I forgot to apply xdmp:tidy to the result to convert the result from html string to xml nodes.. Kind regards, Geert -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent

RE: [MarkLogic Dev General] functx library usage with ML

2009-07-13 Thread Geert Josten
Nice addition! When was this added? I hadn't noticed it before.. Is it mentioned in documentation what is available in the Modules folder, next to what is described on the API pages (at which I personally look most)? And would it be an idea to put the docu somewhere near the API pages as well,

RE: [MarkLogic Dev General] triggering after spawning

2009-07-14 Thread Geert Josten
Or just have each task update the summary document, each incrementing the finished docs counter by one (if there is any)? Note: that effectively serialize all tasks.. Kind regards, Geert Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof

RE: [MarkLogic Dev General] triggering after spawning

2009-07-14 Thread Geert Josten
I am wondering why storing it in the database at all. Why not calculate it on demand? Putting an index on the boolean element should allow it to perform even when you have processed many many many documents.. You might even try doing it without adding a particular index. It might be covered by

RE: [MarkLogic Dev General] triggering after spawning

2009-07-14 Thread Geert Josten
Hi Jakob, I am, quite brutely, doing things like this: let $total-count := count( xdmp:document-properties()/prop:properties/cpf:processing-status ) let $done-count := count( xdmp:document-properties()/prop:properties[cpf:processing-status/text() = 'done' and not(cpf:state/text() =

RE: [MarkLogic Dev General] unnamed directory ... help please.

2009-07-14 Thread Geert Josten
Hi Jakob, Directories cannot be renamed, but can be removed. To do this you could install CQ on your server and run: xdmp:directory-delete('/data/2009/07/14//'); Note: this will remove all child documents and directories. Kind regards, Geert Drs. G.P.H. Josten Consultant

RE: [MarkLogic Dev General] xdmp:estimate.. (was: triggering after spawning)

2009-07-14 Thread Geert Josten
are needed. thanks, -- Mike On 2009-07-14 07:55, Geert Josten wrote: Hi Jakob, I am, quite brutely, doing things like this: let $total-count := count( xdmp:document-properties()/prop:properties/cpf:processing-status ) let $done-count := count( xdmp:document-properties

RE: [MarkLogic Dev General] Content enrichment by defining customentity types

2009-07-14 Thread Geert Josten
Dear Saptarshi, Apparently no one is feeling confident enough to share their experience, and I have none of myself using the enrich api. I have done only limited enrichment within MarkLogic and only with plain Xpath/Xquery. It might help to send a mail to supp...@marklogic.com, if you really

RE: [MarkLogic Dev General] xdmp:estimate..

2009-07-14 Thread Geert Josten
'] ) = 2 0 0 I believe that '2' is the count of property fragments that have prop:properties and cpf:state elements, ignoring the value of cpf:state. -- Mike On 2009-07-14 13:38, Geert Josten wrote: Mike, No I hadn't, actually. But now I have. :-) I have only little documents

RE: [MarkLogic Dev General] Restricting an element range index to a child of another element

2009-07-15 Thread Geert Josten
Hi, Jumping in in the middle, so I may be way out of line. Just having a wild thought: Isn't it possible to simply restrict on parent element by using a cts:element-query? Which can be wrapped in another one to limit on parent-child relations.. Kind regards, Geert Drs. G.P.H. Josten

RE: [MarkLogic Dev General] xquery version

2009-07-16 Thread Geert Josten
You don't really need to. Just make sure you have an xquery version declaration on top of all your files, and you can mix modules in any version.. Kind regards, Geert Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk

RE: [MarkLogic Dev General] xquery version

2009-07-16 Thread Geert Josten
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: donderdag 16 juli 2009 20:04 To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] xquery version You don't really need to. Just make sure you have an xquery version declaration on top of all your

RE: [MarkLogic Dev General] Sorting by the number of occurences of a paragraph

2009-07-27 Thread Geert Josten
Hi Laurens, Have you looked into the cts:element-values and related functions? These are purely based on the MarkLogic Server indexes and are by far quicker than calls to distinct-values. And not sure if it makes difference, but you could also use cts:remainder instead of xdmp:estimate with a

[MarkLogic Dev General] RE: PDF conversion trial

2009-07-28 Thread Geert Josten
Hi Van, You will need a trial license with Conversion option. You might want to ask for Alerting and Entity Enrichment options as well, though I am not sure you really need those. To get a trial license there is a request form readily available in your MarkLogic Server admin site. Go to the

[MarkLogic Dev General] RE: PDF conversion trial

2009-07-28 Thread Geert Josten
By the way, Are you aware that if you install the 'Default conversion option' into your database, you only need to upload PDF documents into your database. The insert/update will trigger PDF conversion automatically. This process starts with calling the pdf-convert function, but performs

[MarkLogic Dev General] RE: PDF conversion trial

2009-07-28 Thread Geert Josten
or is it possible to perform such actions under 3.2 and 4.0? Van -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Tuesday, July 28, 2009 12:41 PM To: General Mark Logic Developer

  1   2   3   4   5   6   7   8   9   10   >