-
-
Save AdamSteffanick/4ca7f4f77301eb3d0ae97e5b9786ea94 to your computer and use it in GitHub Desktop.
XQuery Blue Mountain Project - Part III
This file contains 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.1"; | |
declare namespace tei = "http://www.tei-c.org/ns/1.0"; | |
let $old := fn:doc("/bluemountain-transcriptions/periodicals/bmtnaab/issues/1920/02_01/bmtnaab_1920-02_01.tei.xml") | |
return | |
copy $new := $old | |
modify ( | |
delete node $new/tei:TEI/tei:facsimile, | |
delete node $new//@facs, | |
delete node $new//tei:pc[@type="endhypen"]/following-sibling::tei:lb, | |
delete node $new//tei:pc[@type="endhypen"], | |
for $lb in $new//tei:lb | |
return replace node $lb with " " | |
) | |
return $new/tei:TEI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment