Re: [MarkLogic Dev General] Too many open files

2011-09-02 Thread Ron Hitchens
It looks like you've found a bug and the culprit is setTimeoutMillis(). I rewrote your code a bit to eliminate the unnecessary object churn (Session, RequestOptions and AdhocQuery can all be re-used), and commented out the call to setTimeoutMillis(). Without that setting, it runs fine.

[MarkLogic Dev General] fn:format-number with fixed trailing 0's padded

2011-09-02 Thread Lee, David
I'm trying to figure out fn:format-number The specs are about the most confusing thing I've ever read http://www.w3.org/TR/xpath-functions-30/#syntax-of-picture-string Could someone give me an example that would format a decimal with a fixed number of 0 padded fraction digits ? For example

Re: [MarkLogic Dev General] fn:format-number with fixed trailing 0's padded

2011-09-02 Thread John Snelson
My understanding of the spec is that the picture string #,##0.00 should give you a minimum of two digits after the decimal point. It certainly works that way for me in MarkLogic. fn:format-number(5.6, #,##0.00) gives 5.60 Are you using a recent version of 4.2? John On 02/09/11 18:31, Lee,

Re: [MarkLogic Dev General] fn:format-number with fixed trailing 0's padded

2011-09-02 Thread Lee, David
Thanks I think I have something fishy in my code that is mucking with the data after I've formatted it. David A. Lee Senior Principal Software Engineer Epocrates, Inc. d...@epocrates.com 812-482-5224 -Original Message- From:

Re: [MarkLogic Dev General] fn:format-number with fixed trailing 0's padded

2011-09-02 Thread Lee, David
Try this in ML ... I dont get it but I'm sure its burried in the rules somewhere fn:format-number(43.70242, #,##0.00) I get 43.7 David A. Lee Senior Principal Software Engineer Epocrates, Inc. d...@epocrates.com 812-482-5224 -Original

[MarkLogic Dev General] Modifying an existing option in Application Builder

2011-09-02 Thread Shannon
Hi, Section 4.3.7.2 describes the practice of copying the entire options node from config.xqy and pasting into $OPTIONS in appfunctions.xqy when there is a need to override the property of an existing options node (as opposed to appending a new one using $ADDITIONAL-OPTIONS). The design

Re: [MarkLogic Dev General] fn:format-number with fixed trailing 0's padded

2011-09-02 Thread John Snelson
Yes, me too. I think there's a bug in there somewhere. Can you get in contact with support about this? John On 2 Sep 2011, at 20:04, Lee, David wrote: Try this in ML ... I dont get it but I'm sure its burried in the rules somewhere fn:format-number(43.70242, #,##0.00) I get 43.7

Re: [MarkLogic Dev General] fn:format-number with fixed trailing 0's padded

2011-09-02 Thread Lee, David
Will do. Unfortunately the spec documents are so complicated I cant tell for *sure* whats supposed to happen.\ Or maybe its my caveman brain :) David A. Lee Senior Principal Software Engineer Epocrates, Inc. d...@epocrates.com 812-482-5224

Re: [MarkLogic Dev General] fn:format-number with fixed trailing 0's padded

2011-09-02 Thread seme...@hotmail.com
It looks like if the last digit in the pad is a zero it is dropped: Note:I added another zero in the number Examples: fn:format-number(43.702402, #,##0.000) = 43.702 fn:format-number(43.702402, #,##0.) = 43.7024 fn:format-number(43.702402, #,##0.0) = 43.7024