Skip to content

Instantly share code, notes, and snippets.

@kschlottmann
Last active June 13, 2018 15:14
Show Gist options
  • Select an option

  • Save kschlottmann/85841f24048f7c22fc87269926fdc87e to your computer and use it in GitHub Desktop.

Select an option

Save kschlottmann/85841f24048f7c22fc87269926fdc87e to your computer and use it in GitHub Desktop.
xquery version "3.0";
for $person in /json/_
let $pm:= $person/names/_/sort_name
let $uri:= $person/uri
let $source:= $person/names/_/source
return
<r>
<u>{data($uri)}</u>
<s>{data($source)}</s>
<p>{data($pm)}</p>
</r>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment