Tag Archives: XQuery

MarkLogic to add XSLT 2.0 support

Good news! MarkLogic has been listening to it’s customers and are working on adding XSLT 2.0 support. Norman Walsh announced the news at a MarkLogic user group meeting in New York – see his blog post for details. In the … Continue reading

Tagged , , | Leave a comment

MarkLogic: Move documents to new forests

Our development database had been allowed to grow unchecked and the single forest was well over the recommended 200GB max size. So I created 2 new forests to move all the documents into (I think that’s faster than moving half … Continue reading

Tagged , , | 2 Comments

Excel Function library in XQuery

A port of common spreadsheet functions to XQuery by the FLWOR foundation: http://sourceforge.net/apps/mediawiki/zorba/index.php?title=EXcel_Function_Library Contains loads of useful functions, especially for statistics. It says tested with Zorba, Saxon, and eXist. By the looks of it they don’t use any proprietary XQuery, … Continue reading

Tagged , | Leave a comment

XQuery coalesce

A little trick I picked up recently.. XQuery doesn’t have a coalesce function so I was writing code like: if ($x) then $x else ‘default value’ But there’s a nicer way which shows why there’s no need for a coalesce … Continue reading

Tagged | 9 Comments

XQDT – XQuery support in Eclipse

I’ve found a new project that adds XQuery support to Eclipse – XQDT. It’s early days for the plugin but already it looks very good. It has proper syntax highlighting, live code validation, auto-complete and crucially can connect to MarkLogic … Continue reading

Tagged , , , | 2 Comments

Format number in XQuery

I may be blind and all this was for nothing, but I couldn’t find an easy way to format a number with thousand separators – e.g. 1,234. So I wrote this little function: declare function local:format-int($i as xs:int) as xs:string … Continue reading

Tagged , | 3 Comments

XQuery support in Notepad++ XQuery 1.0 and MarkLogic 4.1 update

I’ve finally updated the Notepad++ language definition for XQuery 1.0 and MarkLogic 4.1. It adds XQuery to the language menu, and enables syntax highlighting and auto-complete of XQuery 1.0, as well as the MarkLogic 4.1 API (including the library modules). … Continue reading

Tagged , , | 9 Comments

XDMP-LISTCACHEFULL error

Today I found some queries were erroring with: XDMP-LISTCACHEFULL: List cache full on host … Googling “LISTCACHEFULL” returns a paltry 1 result – someone asking about the error on the MarkLogic mailing list but getting no response. Great. I simplified … Continue reading

Tagged , | 2 Comments

MarkLogic 4.1 Released

MarkLogic have released version 4.1, not long after 4.0 came out. I haven’t had a chance to use it yet but it looks like there are a few cool new features: XML schema validation Japanese language support Task scheduler JSON … Continue reading

Tagged , | Leave a comment

MarkLogic improvements

I was recently asked to write a list of improvements I’d like to see in future MarkLogic releases – here’s what I came up with: Server Error messages are sometimes misleading and unhelpful Logging restricted to global errorLog.txt Can’t index … Continue reading

Tagged , | Leave a comment