Skip to content

Instantly share code, notes, and snippets.

@davidamichelson
Created August 16, 2016 18:49
Show Gist options
  • Save davidamichelson/93b366f70b7630bbceac2d3900c29193 to your computer and use it in GitHub Desktop.
Save davidamichelson/93b366f70b7630bbceac2d3900c29193 to your computer and use it in GitHub Desktop.
let $list := ("http://syriaca.org/person/1631", "http://syriaca.org/person/1442")
for $item in $list
let $uri := $item
return
for $idno in fn:collection('/db/apps/srophe-data/data/persons/tei')//tei:person/tei:idno[1]/text()[.=$uri]
let $name := $idno/preceding-sibling::tei:persName[xml:lang="en"][contains(@syriaca-tags,"#syriaca-headword")]
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment