Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created August 24, 2016 13:25
Show Gist options
  • Save ableasdale/a023f8e0ddaad114d73d2c2b76e29b77 to your computer and use it in GitHub Desktop.
Save ableasdale/a023f8e0ddaad114d73d2c2b76e29b77 to your computer and use it in GitHub Desktop.
Getting the host name from xdmp:host-status
xquery version "1.0-ml";
declare namespace hs = "http://marklogic.com/xdmp/status/host";
xs:string(xdmp:host-status(xdmp:host())/hs:host-name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment