Skip to content

smagu/MarkLogic-XQuery-Functions-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Marklogic-XQuery-Functions-Library (MXFL)

Marklogic XQuery Functions Library is another try of filling up at least some gaps of missing funcionality or functions that are available elsewhere (for instance, in XSLT). List of currently added functions is:

  • mxfl:generate-uuid-v4()
  • mxfl:remove-files-incrementally($collection as xs:string)

To run this library

In order to import this library, download and put onto ML server where it would be accessible by your application. After that, call it in to your XQuery function like this:

xquery version "1.0";

import module namespace mxfl='http://www.vaitkus.com/xquery/functions' at '/lib/mxfl.xquery';

Functions

mxfl:generate-uuid-v4()

This is a generic implementation of generating UUID in XQuery. It only relies on xdmp:* functions of MarkLogic to create this according to UUID v4 format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx where x is any hexadecimal digit and y is one of 8, 9, a, or b.

mxfl:remove-files-incrementally()

This removes files incrementally from a selected collection. //TODO: work-in-progress

Issues?

Any issues please log it on github.com, blog, or email arunas@vaitkus.com

About

MarkLogic Xquery Functions Library (MXFL) is a set of namespaces functions that have not been widely implemented in other libraries. This library is ought to fill some gaps (or functions that someone else would find useful

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages