Re: [MarkLogic Dev General] xmlsh question

2013-04-11 Thread David Lee
I can answer in more detail later but for now take a look at xread. xread parses text XML and produces an in memory XML document. ml:get ... -t | xread x Now x is an XML doc and you can do echo <[ $x//elem ]> Sent from my iPad (excuse the terseness) David A Lee d...@marklogic.com

[MarkLogic Dev General] xmlsh question

2013-04-11 Thread Nick Raphael
xmlsh: 1.2.2 ml-xcc: 5.0.1 ml server: 5.0.3 java: 1.7.0_07 os x: 10.7.5 I have an xmlsh function that wraps an ML query. The ML query imports some (xquery) library modules, then calls an xquery function. The xmlsh function wraps ml:query -t -q "$1" So far, so good. my-func myfile.xml w

[MarkLogic Dev General] unable to install ML6 on CentOS 6.4

2013-04-11 Thread Gulik, Ernest
Hello, I'm trying to install ML6_64bit on CentOS 6.4 version from rpm but I get dependency error: $ sudo rpm -ivh MarkLogic-6.0-2.3.x86_64.rpm error: Failed dependencies: libc.so.6(GLIBC_2.4) is needed by MarkLogic-6.0-2.3.x86_64 Did anyone had such issue and if yes then what is the best

[MarkLogic Dev General] ML Connection issue

2013-04-11 Thread mahesh.chintawar
> Hello Team, > > This is regarding one of issue we are facing frequently while we are > creating ML instances. (sometimes while deletion also) > Problem is when we create instance everything is working file like > Forst/DB/AppServer creation, but while ingesting records in ML I am > getting conne

Re: [MarkLogic Dev General] (foo(), bar())[1]: is bar() evaluated if foo() exists?

2013-04-11 Thread Florent Georges
Ken Tune wrote:   Hi, > Folks more knowledgable than me, correct me if I’m wrong but > $seq[n] is shorthand for $seq[posn() = n]   When "n" evaluates to a singleton integer, "$s[n]" is equivalent to "$s[position() eq n]". > which is why something like > (1 to 10)[xdmp:random(9) + 1] can yield c

Re: [MarkLogic Dev General] (no subject)

2013-04-11 Thread Gidi Kroon
Hi Harry, When I tried this, I could only get it to work wrapping an extra cts:search in there: cts:search(/document-a, cts:element-value-query(xs:QName("filename"), cts:search(/document-b, cts:element-value-query(xs:QName("workflow-status"), "pending", "exact"))/filename, "exact") ) I'

Re: [MarkLogic Dev General] (foo(), bar())[1]: is bar() evaluated if foo() exists?

2013-04-11 Thread Ken Tune
Folks more knowledgable than me, correct me if I'm wrong but $seq[n] is shorthand for $seq[posn() = n] which is why something like (1 to 10)[xdmp:random(9) + 1] can yield counter-inituitive results. The above would imply that short-circuiting as described is therefore not consistent with requi

[MarkLogic Dev General] FW: (foo(), bar())[1]: is bar() evaluated if foo() exists?

2013-04-11 Thread Geert Josten
After tweeting all week so much, I miss the Favorite button in my mail client.. ;-) *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *Jakob Fix *Verzonden:* donderdag 11 april 2013 9:07 *Aan:* MarkLogic Developer Discussion *Onderwerp:* Re:

Re: [MarkLogic Dev General] (foo(), bar())[1]: is bar() evaluated if foo() exists?

2013-04-11 Thread Jakob Fix
Hi, I was kind of hoping that this might be an occasion to use xdmp:eager() but wrapping Michael's test case in it doesn't change the time spent at all. BTW, what's the use case for xdmp:eager(), the documentation is a bit "xdmp:lazy()" about it ;-) cheers, Jakob. On Wed, Apr 10, 2013 at 11:40 P