Basically let is a guaranteed evaluation of every variable. Declare variables
are only evaluated when used so if you declare a variable but never use it,
then it will never be evaluated or executed.
Because of the lazy evaluation, declare variables will always be executed
sequentially so
If your other variable $etag-map is the empty sequence you may have run into
function mapping behavior.
Look for a good explanation of function mapping here:
http://nelsonwells.net/2013/05/two-reasons-your-marklogic-code-is-failing-silently-part-2/
And here:
single threaded non parallel fashion - its
the order (or presence) of evaluation which is not defined.
'Parallel' implies actual concurrency.
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Keith L
prop:last-modified is not a property that you can manually set. I believe
that is a security issue.
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Mike Sokolov
Sent: Thursday, May 22, 2014 8:26 AM
To: MarkLogic General ML
Subject:
Unfortunately there is no XQuery functionality to remove a file system
directory or a file.
Currently best practice is to zero out the file by writing a zero length file
and using an external process to delete empty files and folders older than a
couple hours or a day.
-Original
?
-Original Message-
From: Florent Georges [mailto:li...@fgeorges.org]
Sent: Friday, September 14, 2012 8:35 AM
To: Keith L. Breinholt; MarkLogic Developer Discussion; Michael Blakeley
Subject: Re: [MarkLogic Dev General] Inserting in a file system module database
Keith L. Breinholt wrote:
Hi
You could use the browser based debugger XQDebug:
http://code.google.com/p/xqdebug/
XQDebug allows you to debug websites and webservices built on MarkLogic. If
you want to debug directly from an editor user Oxygen or from qconsole use XQDT.
From: general-boun...@developer.marklogic.com
index
and that's what makes MarkLogic a great triple store. Done right, all your data
is in memory and the indexes are used. Your app never touches the disk.
On Tue, Dec 20, 2011 at 11:19 AM, Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org wrote:
So what you
Neil,
It would appear that you are passing the contents of the document to
fn:collection() instead of the URIs of the documents.
- Keith
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Neil
Sent: Thursday, September 01, 2011 1:08 PM
Your function was never called. You have been bitten by function mapping.
Passing a () value to any function with function mapping turned on doesn't call
the function at all.
Function mapping is turned on by default. If you want it off put this at the
top of your code.
declare
Ryan,
There were several other groups internally that did this a while back. Have
you asked Stewart Shelline?
- Keith
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of
seme...@hotmail.com
Sent: Thursday, June 09, 2011 8:21 AM
To:
There are also some utility functions that return the path or the filename.
import module namespace util = http://marklogic.com/xdmp/utilities; at
/MarkLogic/utilities.xqy;
let $someurl :=
/db/netvisn/global/analysis/result/98bbdd41-34b9-45d3-833e-4afe65fb9ec3.xml
util:basename( $someurl )
Perhaps you could give us the XPath and the cts:search() code. It would make
it easier to diagnose.
- Keith
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of
seme...@hotmail.com
Sent: Thursday, May 12, 2011 9:05 AM
To:
You might try the moving the @key reference out of the filter like this:
fn:collection()/resource-bundle/resource/@key[. eq
$key]/..[fn:lang($lang-code)]
Putting the attribute name in the filter sometimes doesn't allow the XPath to
use an index for the query. Moving it to the
Can we get the SHA-2 functions as well? (SHA-256 and SHA-512 at least.)
Thanks.
- Keith
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Sam Neth
Sent: Monday, May 09, 2011 12:07 PM
To: General MarkLogic Developer Discussion
Subject:
, I have one thing which I don't understand is that I install a trigger
on Triggers DB for another DB and HTTP App, why it affects this XQDebug DB
which is new one?
Long Hiep.
On Wed, May 4, 2011 at 7:07 PM, Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org wrote
anything else.
- Keith
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Keith L. Breinholt
Sent: Thursday, May 05, 2011 8:52 AM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Error when installing xqdebug
XQDebug doesn't use triggers so you might start by looking at other software
which has set up triggers.
Was error received during the install? Which version of MarkLogic are you
using? What other MarkLogic software do you have installed?
- Keith
From: general-boun...@developer.marklogic.com
To get base64 value use the xs:base64Binary() conversion function.
xs:base64Binary( xdmp:get-document( $foo ) )
To convert to binary use binary { } constructor.
binary { xs:base64Binary( xdmp:get-document( $foo ) ) }
- Keith
-Original Message-
From:
: [MarkLogic Dev General] Strange search:search behavior
Keith,
In your second example, the additional-query element is not in the
http://marklogic.com/appservices/search namespace.
Justin
On Mar 17, 2011, at 1:54 PM, Keith L. Breinholt wrote:
I'm running 4.2-2 and have run into a search:search
{$query}
/options
The first returns the expected result. The second returns all results as if
the additional-query was never applied.
Keith L. Breinholt
Do what you can, with what you have, where you are. - Theodore Roosevelt
NOTICE: This email message is for the sole use
There is one caveat to using pre-commit triggers with WebDAV. When the Windows
WebDAV client writes a file it first writes a zero length file and then does an
update to the zero length file with the real contents.
So as long as you are not using Windows WebDAV to load your content using a
You've been a busy boy.
Nice work.
- Keith
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Lee, David
Sent: Thursday, February 03, 2011 7:09 AM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] #Announce published
Have you tried XQDebug? You can debug XQuery HTTP applications, stop, step,
view variables, stack, etc.
- Keith
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of David Sewell
Sent: Wednesday, January 05, 2011
I concure. ML4.2 Runs best in 64-bit Win7. It also runs best if you install
it on a partition other than where windows is installed.
Keith
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com]
.)
David
On Tue, 26 Oct 2010, Keith L. Breinholt wrote:
XQDebug 1.0.2 is available for download at:
http://code.google.com/p/xqdebug/downloads/list
There are several new enhancements and fixes including window
resizing, better support for MarkLogic libraries, allowing the Database
It looks like you have a zip file that incorporates changes that weren't in the
distribution.
There is a new version of XQDebug, 1.0.2, that will filter Apple and SVN
changelog/archive files from a zip file.
You can get it from here: http://code.google.com/p/xqdebug/downloads/list
1.0.2 also
I'll throw my two cents in.
Editors:
Personally, I use Oxygen for all the same reasons David mentioned. It also
supports XSLT and XML Diff and Merge. If you intend to use C# or C++ for your
frontend and make XCC calls to MarkLogic for your XML/XQuery, Oxygen is a good
fit for your needs and
by MarkLogic?
Keith L. Breinholt
Missionary Public Affairs Portfolio
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
Do what you can, with what you have, where you are. Theodore Roosevelt
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain
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
,
$length as xs:integer )
as xs:string
Hope that works for you.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Lee, David
Sent: Thursday, May 13, 2010 9:53 AM
Or perhaps using the ::sibling XPath operator to select your dataset and then
processing the dataset with a FLOWR statement?
Keith L. Breinholt
breinhol...@ldschurch.org
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com
a MarkLogic server
or its resources.
Keith L. Breinholt
breinhol...@ldschurch.org
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Wednesday, March 31, 2010 11:45 PM
To: General Mark Logic
Good suggestion Gert. Unfortunately the performance for the encode/decode of
the binary makes MLJAM a nonstarter.
I appreciate the suggestion though.
Keith L. Breinholt
breinhol...@ldschurch.org
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun
Is there a way to manipulate the content of a binary file from in the database?
We have a need to crop an image file.
Any help is appreciated.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
Do what you can, with what you have, where you are. Theodore Roosevelt
),
(: set version bits :)
xdmp:integer-to-hex($g_uuidVersion),
(: set reserved bits :)
substring( $hash, 17, 1 ),
xdmp:integer-to-hex((xdmp:hex-to-integer(substring($hash, 18, 1)) idiv 4)
+ $g_uuidReserved),
substring( $hash, 19, 14 )
)
};
Keith L
Correct, each unique URI passed in will have a different UUID. But if you pass
in the same URI in the same transaction it will return the same UUID.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
[mailto:general-boun
For us there hasn't been a use case where we want to have different UUIDs in
for the same file/identifier/URI in the same transaction.
Perhaps I'm missing something.
If that is a requirement adding the xdmp:elapsed-time() would definitely work.
Keith L. Breinholt
breinhol...@ldschurch.org
for every call of the function we then need to keep a
count that increments with each call of the function and tracks the clock ticks
between calls.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
[mailto:general-boun
of getting a SHA-1
or SHA-2 function in the near future? The server must have one available since
the implementation of HTTPS/SSL, right?
Keith L. Breinholt
breinhol...@ldschurch.org
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun
// p[starts-with(ref:anchor/@id, para_)]/text[fn:contains( sometext, .)]
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Steiner, David J.
(LNG-DAY)
Sent
users/applications that need to see it. That way only
completed content is visible and it appears 'instantaneously' when the
privilege is added to the role.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
experience so I’m looking at other options. I seem to have it working by
skipping the manage call on empty create, set an emptyOnCreate property (CPF
style) and call dls:document-manage() later on the first update.
Thanks for the suggestion,
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol
Thanks for correcting me Danny. (I need more sleep.)
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky
Sent: Thursday, March 18, 2010 10:48 AM
? If not we could really use a function
dls:document-update-version-file( $uri, $node, $version ).
Keith L. Breinholt
Missionary Public Affairs Portfolio
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
Do what you can, with what you have, where you are. Theodore Roosevelt
NOTICE: This email
David,
Have you thought about creating a simple XML document and passing that to your
xquery?
Might be easier. Especially if the documents you load are similar and/or
configurable.
Just a thought.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general
Let me rephrase that: If you are backing up or loading the same or similar
sets of documents and directories it might be easier to create an XML
configuration file that you can pass for each run.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun
You can declare a prefix for a namespace and use it in XQuery or XPath like
this:
declare namespace mystuff = http://mystuff.com/schema;;
$record//mystuff:list
Try it out.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun
, $evtid )
};
Use xdmp:unquote() on the message after the event string and you have all the
power of XQuery for further processing.
Let me know if that helps.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
[mailto:general
One last note: If you want to bypass the trace functions you could use the same
technique with fn:log() or xdmp:log(); just wrap your message in an element and
use the same readLog() function.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun
Is there a simple way to the current module directory form within XQuery?
This would be useful in writing templates or generic header and footer files.
Thanks,
Keith L. Breinholt
Missionary Public Affairs Portfolio
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
Do what you can
I like it.
Keith L. Breinholt
breinhol...@ldschurch.org
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, February 12, 2010 1:56 PM
To: General Mark Logic Developer Discussion
Subject
Where can I find a list of supported languages?
I’ve glanced through the main MarkLogic website but didn’t find this
information.
Thanks for any help.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
NOTICE: This email message is for the sole use
Thanks Ruth. Thanks Danny.
Keith L. Breinholt
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Ruth Stryker
Sent: Monday, February 08, 2010 11:12 AM
To: General Mark Logic
in that
scenario.
Keith L. Breinholt
breinhol...@ldschurch.org
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Whitby, Rob,
Springer Healthcare
Sent: Friday, February 05, 2010 6:18 AM
To: General Mark Logic
Windows 2003 Server Enterprise x64 Edition to 64-bit RedHat Enterprise.
Keith L. Breinholt
breinhol...@ldschurch.org
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Whitby, Rob,
Springer Healthcare
Sent
To answer your question Gert, I believe the chapter on security is now
contained in section 19 of the Administrators Guide.
Keith L. Breinholt
Missionary Public Affairs Portfolio
breinhol...@ldschurch.org
-Original Message-
From: general-boun...@developer.marklogic.com
[mailto:general
create-parentstrue/create-parents /options
)
Hope that helps.
Keith L. Breinholt
Missionary Public Affairs Portfolio
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Lee, David
Is it possible to determine the size of a document in the database?
I don't see anything in the API or properties that can give me this information.
What is the best way to determine the size of a document?
Keith L. Breinholt
ICS Content Media
breinhol...@ldschurch.org
NOTICE: This email
I agree with you Darin. We've been asking for file system delete capability
for a while now as well.
Keith L. Breinholt
ICS Content Media
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com
are doing a post here we effectively only have
let $body := xdmp:get-request-field(upload)
on the receiving end.
Any other ideas?
Keith L. Breinholt
ICS Content Media
breinhol...@ldschurch.org
Date: Tue
.
Two questions: Why is MarkLogic intercepting all POST calls in the first place?
And second, if there is a good reason then why does MarkLogic intercept POST
calls before the rewriter instead of after when it actually knows where it is
headed?
Keith L. Breinholt
ICS Content Media
breinhol
I apologize for the errant PUT. I have in fact tried with the method=post
and that is in fact the only method that gives the 405 error.
The method=put was an attempt on my part to find a way around this problem.
Again, it is only on method='post' that I get the 405 error.
Keith L. Breinholt
you the code and trigger
information.
Keith L. Breinholt
ICS Content Media
breinhol...@ldschurch.org
-Original Message-
Date: Fri, 16 Oct 2009 15:48:02 -0700
From: Danny Sokolsky danny.sokol...@marklogic.com
Subject: [MarkLogic Dev General] RE: GUIDs, triggers and directories
you solve this problem?
Thanks,
Keith L. Breinholt
ICS Content Media
breinhol...@ldschurch.orgmailto:breinhol...@ldschurch.org
Do what you can, with what you have, where you are. Theodore Roosevelt
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain
.
Thanks,
Keith L. Breinholt
ICS Content Media
breinhol...@ldschurch.org
-Original Message-
Date: Fri, 16 Oct 2009 10:56:12 -0700
From: Danny Sokolsky danny.sokol...@marklogic.com
Subject: [MarkLogic Dev General] RE: GUIDs, triggers and directories...
To: General Mark Logic Developer
functions
to retrieve these but are there user level functions? It would be nice to
determine if an event exists and if tracing is enabled before doing lengthy
calculations. (For instance there is a xdmp:log-level() function to determine
what level of logging set to.)
Thanks,
Keith L. Breinholt
.
From: Keith L. Breinholt
Sent: Monday, March 23, 2009 4:24 PM
To: 'general@developer.marklogic.com'
Subject: Are host names unique?
I'm trying to write some code that can address a specific host in a system.
Can I assume that host names will always be unique in all contexts?
Keith L. Breinholt
68 matches
Mail list logo