Skip to content

Instantly share code, notes, and snippets.

@joewiz
Created March 4, 2019 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joewiz/da9b4f8f5e3104921b270b0726276f1d to your computer and use it in GitHub Desktop.
Save joewiz/da9b4f8f5e3104921b270b0726276f1d to your computer and use it in GitHub Desktop.
XQuery 3.1 module boilerplate
xquery version "3.1";
(: Standard namespaces from https://www.w3.org/TR/xpath-functions-31/#namespace-prefixes :)
declare namespace array="http://www.w3.org/2005/xpath-functions/array";
declare namespace err="http://www.w3.org/2005/xqt-errors";
declare namespace fn="http://www.w3.org/2005/xpath-functions";
declare namespace map="http://www.w3.org/2005/xpath-functions/map";
declare namespace math="http://www.w3.org/2005/xpath-functions/math";
declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization";
declare namespace xs="http://www.w3.org/2001/XMLSchema";
(: Vocabularies :)
declare namespace tei="http://www.tei-c.org/ns/1.0";
(: Serialization options :)
declare option output:method "adaptive";
declare option output:indent "yes";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment