Re: [MarkLogic Dev General] Failure to enforce occurrence indicators in function signature

2015-08-21 Thread Ron Hitchens
s/arity/cardinality/ It’s late. --- Ron Hitchens {r...@overstory.co.uk} +44 7879 358212 > On Aug 22, 2015, at 2:36 AM, Ron Hitchens wrote: > > >If you really do have a parameter with an arity of ?, then it won’t be > function mapping. Function mapping only happens when a function

Re: [MarkLogic Dev General] Failure to enforce occurrence indicators in function signature

2015-08-21 Thread Ron Hitchens
If you really do have a parameter with an arity of ?, then it won’t be function mapping. Function mapping only happens when a function parameter is specified to allow one-and-only-one. In that case it’s unambiguous to map each item in a sequence onto a function call. If a parameter is opt

Re: [MarkLogic Dev General] keep alive timeout

2015-08-21 Thread David Ennis
HI. This works like a keepalive timeout on other servers (apache, nginx, etc). "specifies the maximum number of seconds before a socket receives a timeout for subsequent requests over the same connection" So, when a request is made to the server, the socket will remain open for the specified am

[MarkLogic Dev General] keep alive timeout

2015-08-21 Thread Tiao, Amos
Hi, What does keep alive timeout mean for http server? What would be the impact of decrease and increase the time for the setting? Does one request here spawn one thread in Marklogic? Thanks. Amos ___ General mailing list General@developer.marklogic.

[MarkLogic Dev General] Sprint 4 retrospective

2015-08-21 Thread Demian Hess
Here are notes from the today's retrospective. It was more abbreviated than usual due to the fact that so many people were out of the office (Felix, Spencer, and Mike). *What went well* 1) We accomplished all of our goals for functionality: image resolution, shopping cart, browsing different objec

Re: [MarkLogic Dev General] Failure to enforce occurrence indicators in function signature

2015-08-21 Thread Hasegawa, Margarete
Yes, I think function mapping is the most likely problem. Thanks for the link documentation link. Maggie From: Justin Makeig mailto:justin.mak...@marklogic.com>> Reply-To: MarkLogic Developer Discussion mailto:general@developer.marklogic.com>> Date: Friday, August 21, 2015 12:54 PM To: MarkLog

Re: [MarkLogic Dev General] Failure to enforce occurrence indicators in function signature

2015-08-21 Thread Justin Makeig
You're likely running into function mapping . Justin > On Aug 21, 2015, at 9:44 AM, Hasegawa, Margarete > wrote: > > Hi, > > Has anyone experienced an issue with MarkLogic failing to enforce occurrence > indicators in function call

Re: [MarkLogic Dev General] Failure to enforce occurrence indicators in function signature

2015-08-21 Thread Florent Georges
Hi, Are you sure function mapping is not at work, here? Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 21 August 2015 at 18:44, Hasegawa, Margarete wrote: > Hi, > > Has anyone experienced an issue with MarkLogic failing to enforce > occurrence indicators in fun

[MarkLogic Dev General] Failure to enforce occurrence indicators in function signature

2015-08-21 Thread Hasegawa, Margarete
Hi, Has anyone experienced an issue with MarkLogic failing to enforce occurrence indicators in function calls? For example, a function expects xs:string? (meaning that the function is expecting either the empty sequence or a single node), but instead accepts multiple values and does not fail. W

Re: [MarkLogic Dev General] newline in xquery - Help needed

2015-08-21 Thread Pavadaidurai A
Hi Geert, Great Thanks! Thanks, Durai. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges Sent: Friday, August 21, 2015 6:02 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] newline in xquery - He

Re: [MarkLogic Dev General] newline in xquery - Help needed

2015-08-21 Thread Florent Georges
Damn, you're too fast for me, Geert! :-) -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ On 21 August 2015 at 14:29, Geert Josten wrote: > Hi Durai, > > Use string-join: > > xdmp:save("/delivery/file.txt", > > string-join( > > cts:uris((),(),cts:element-query(xs:QN

Re: [MarkLogic Dev General] newline in xquery - Help needed

2015-08-21 Thread Florent Georges
Hi, The result of your query is a sequence of strings (each ending with a newline char). The sequence is then serialized by using a space to separate each of them. If you want full control over the result, generate one single string, e.g.: xdmp:save( '/delivery/file.txt', fn:string-join(

Re: [MarkLogic Dev General] newline in xquery - Help needed

2015-08-21 Thread Geert Josten
Hi Durai, Use string-join: xdmp:save("/delivery/file.txt", string-join( cts:uris((),(),cts:element-query(xs:QName("prefix:element"),"*")) " " ) ) Cheers, Geert From: mailto:general-boun...@developer.marklogic.com>> on behalf of Pavadaidurai A mailto:pavadaidura...@info

[MarkLogic Dev General] newline in xquery - Help needed

2015-08-21 Thread Pavadaidurai A
Hi, I am actually trying to run a report using query similar to the below one. I use codepoints-to-string(10) to produce newline character. The file is saved into Linux environment and then transferred to windows. I am facing alignment problems here. The first line looks okay, but from the sec