Created
June 24, 2016 19:16
-
-
Save davidamichelson/b105f28533e64f6e4d0682553c4d32c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
declare namespace tei = "http://www.tei-c.org/ns/1.0"; | |
for $doc in fn:collection("/db/apps/incomplete-saints")//tei:TEI | |
let $fiey := $doc//tei:bibl[matches(@xml:id, "bib\d+-2") and tei:ptr[@target="http://syriaca.org/bibl/650"]] | |
let $zanetti := $doc//tei:bibl[matches(@xml:id, "bib\d+-1") and tei:ptr[@target="http://syriaca.org/bibl/649"]] | |
where $fiey/ancestor::tei:person/@xml:id = $zanetti/ancestor::tei:person/@xml:id | |
return | |
$doc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment