[MarkLogic Dev General] Question about function signatures and type checking

2010-05-21 Thread Steve Mallen
Hi folks, Does anyone know how Mark Logic deals with function signature type checking when calling functions? I ask because I recently went on a bit of a wild goose-chase debugging session, the result of which was that a function we'd defined was not being called at all (because of a mismatch

Re: [MarkLogic Dev General] Question about function signatures and type checking

2010-05-21 Thread Sam Neth
Function mapping. Here's a recent thread about this topic: http://markmail.org/thread/n2eyj2t56fmor7to On May 21, 2010, at 3:06 AM, Steve Mallen wrote: Hi folks, Does anyone know how Mark Logic deals with function signature type checking when calling functions? I ask because I recently went

Re: [MarkLogic Dev General] Question about function signatures and type checking

2010-05-21 Thread Steve Mallen
Thanks Sam. Looks like this is a common gotcha. I think we'll disable it in all our code :) Cheers, -Steve On 21/05/2010 11:22, Sam Neth wrote: Function mapping. Here's a recent thread about this topic: http://markmail.org/thread/n2eyj2t56fmor7to On May 21, 2010, at 3:06 AM, Steve Mallen

Re: [MarkLogic Dev General] Question about function signatures and type checking

2010-05-21 Thread Keith L. Breinholt
Most of our developers turn it off in all our code unless there is a specific reason to use it and then, and only then, we turn it on. JMTB, Keith breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org From: general-boun...@developer.marklogic.com

[MarkLogic Dev General] XQSync error not seen before

2010-05-21 Thread David Sewell
I'm trying to use XQSync to copy a database to a ZIP file. My XQSync installation is working, and I've succeeded in copying one database with around 12000 files without a problem. But the database I really want to copy is producing errors like this: May 21, 2010 11:32:02 AM

Re: [MarkLogic Dev General] XQSync error not seen before

2010-05-21 Thread Michael Blakeley
David, I haven't seen this one before. Can you send me the full log offline? -- Mike On 2010-05-21 09:17, David Sewell wrote: I'm trying to use XQSync to copy a database to a ZIP file. My XQSync installation is working, and I've succeeded in copying one database with around 12000 files

Re: [MarkLogic Dev General] XQSync error not seen before

2010-05-21 Thread Mark Helmstetter
I've never seen that error before. It would be very helpful if you could provide the complete log output, including the stack trace. -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Sewell Sent: Friday,

[MarkLogic Dev General] Regular expression bug

2010-05-21 Thread Maloney, Christopher (NIH/NLM/NCBI) [C]
xquery version 1.0; let $s := aabbcc return html xmlns=http://www.w3.org/1999/xhtml; head titleregex-anomaly.xqy/title /head body h1regex-anomaly.xqy/h1 p Demonstrate a MarkLogic regular expression bug. /p p Test string is {$s} /p

Re: [MarkLogic Dev General] Regular expression bug

2010-05-21 Thread Chris Maloney
Work-around: I discovered that if I enclosed the first part of the expression in parens, it works. E.g. replace($s, ^(a*?)b+, x): xcc On Fri, May 21, 2010 at 2:56 PM, Maloney, Christopher (NIH/NLM/NCBI) [C] malon...@ncbi.nlm.nih.gov wrote: xquery version 1.0; let $s := aabbcc return