Author Archives: Rob
SyntaxHighlighter XQuery brush
Update: Now hosted on GitHub: http://github.com/robwhitby/SyntaxHighlighter-XQueryBrush I’ve just improved the code snippets in my posts by using the excellent SyntaxHighlighter by Alex Gorbatchev. I had to write a new brush for XQuery, but this was pretty straightforward (it has a … Continue reading
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
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
Installing MarkLogic on Ubuntu 9.04
Although MarkLogic isn’t officially supported on Ubuntu, it will run fine – after jumping through some hoops to get in installed. Thankfully someone has already detailed the process: “MarkLogic install on Ubuntu 9.04 and libbteuclid and libbtunicode
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
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
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
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
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
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
