Skip to content

Instantly share code, notes, and snippets.

@joewiz
Created September 15, 2018 23:05
Show Gist options
  • Select an option

  • Save joewiz/2e10b4addc58d24af8d544c6a042f394 to your computer and use it in GitHub Desktop.

Select an option

Save joewiz/2e10b4addc58d24af8d544c6a042f394 to your computer and use it in GitHub Desktop.
Boilerplate for declaring Adaptive serialization in XQuery
xquery version "3.1";
declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization";
declare option output:method "adaptive";
declare option output:indent "yes";
map { "reference": xs:anyURI("https://www.w3.org/TR/xslt-xquery-serialization-31/#adaptive-output") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment