Last active
April 15, 2017 07:34
-
-
Save CliffordAnderson/21ee61800e54d55f75bb0305ee639340 to your computer and use it in GitHub Desktop.
XQuery Blue Mountain Project - Part III
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.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 |
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.1"; | |
declare namespace tei = "http://www.tei-c.org/ns/1.0"; | |
let $id := "c009" | |
let $doc := "/bluemountain-transcriptions/periodicals/bmtnaab/issues/1920/02_01/bmtnaab_1920-02_01.tei.xml" | |
let $metadata := fn:doc($doc)/tei:TEI//*[@xml:id=$id] | |
let $article := fn:doc($doc)/tei:TEI//*[@corresp=$id] | |
let $tei := | |
<tei:TEI> | |
<tei:teiHeader> | |
<tei:fileDesc> | |
<tei:titleStmt> | |
<tei:title> | |
</tei:title> | |
</tei:titleStmt> | |
<tei:publicationStmt> | |
<tei:p></tei:p> | |
</tei:publicationStmt> | |
<tei:sourceDesc> | |
<tei:p></tei:p> | |
</tei:sourceDesc> | |
</tei:fileDesc> | |
</tei:teiHeader> | |
<tei:text> | |
<tei:body> | |
</tei:body> | |
</tei:text> | |
</tei:TEI> | |
return $tei |
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.1"; | |
declare default element namespace "http://www.tei-c.org/ns/1.0"; | |
(let $doc := fn:doc("/bluemountain-transcriptions/periodicals/bmtnaab/issues/1920/02_01/bmtnaab_1920-02_01.tei.xml") | |
for $id in $doc/TEI//*/fn:data(@xml:id) | |
let $titleStmt := $doc/TEI/teiHeader/fileDesc/titleStmt | |
let $publicationStmt := $doc/TEI/teiHeader/fileDesc/publicationStmt | |
let $metadata := $doc//*[@xml:id=$id]/biblStruct | |
let $article := $doc//*[@corresp=$id] | |
let $tei := | |
<TEI> | |
<teiHeader> | |
<fileDesc> | |
{$titleStmt} | |
{$publicationStmt} | |
<sourceDesc> | |
{$metadata} | |
</sourceDesc> | |
</fileDesc> | |
</teiHeader> | |
<text> | |
<body> | |
{$article} | |
</body> | |
</text> | |
</TEI> | |
return $tei)[2] |
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
<TEI xmlns="http://www.tei-c.org/ns/1.0"> | |
<teiHeader> | |
<fileDesc> | |
<titleStmt> | |
<title>Transcription of<biblStruct> | |
<monogr> | |
<title level="j"> | |
<seg type="main">Action</seg> | |
</title> | |
<imprint> | |
<biblScope unit="vol">1</biblScope> | |
<biblScope unit="issue">1</biblScope> | |
<date when="1920-02">Février 1920</date> | |
</imprint> | |
</monogr> | |
</biblStruct> | |
</title> | |
</titleStmt> | |
<publicationStmt> | |
<publisher>Princeton University</publisher> | |
<idno type="bmtnid">bmtnaab_1920-02_01</idno> | |
</publicationStmt> | |
<sourceDesc> | |
<biblStruct> | |
<analytic> | |
<title level="a"> | |
<seg type="main">SOMMAIRE :</seg> | |
</title> | |
<textLang mainLang="fre"/> | |
</analytic> | |
<monogr> | |
<imprint> | |
<classCode scheme="CCS">TextContent</classCode> | |
<biblScope unit="page">2</biblScope> | |
</imprint> | |
</monogr> | |
</biblStruct> | |
</sourceDesc> | |
</fileDesc> | |
</teiHeader> | |
<text> | |
<body> | |
<div type="TextContent" corresp="c002"> | |
<div type="Head"> | |
<ab facs="P2_TB00003"> | |
<lb facs="P2_TL00009"/>SOMMAIRE :</ab> | |
</div> | |
<div type="Copy"> | |
<div type="BodyContent"> | |
<div type="Paragraph"> | |
<div type="Text"> | |
<ab facs="P2_TB00004"> | |
<lb facs="P2_TL00010"/>La Conception stendhalienne<lb facs="P2_TL00011"/>du Héros : Julien Sorel . Gabriël Brunet<lb facs="P2_TL00012"/>Entrepôt Voltaire . . . Max Jacob<lb facs="P2_TL00013"/>Le Bal du « Rector ». . . Marcel Millet<lb facs="P2_TL00014"/>Première Chambre du Mu<pc type="endhypen" pre="false">-</pc> | |
<lb facs="P2_TL00015"/>séum Criminel du policier<lb facs="P2_TL00016"/>Laitance André Salmon<lb facs="P2_TL00017"/>Un donneur d'Illusions<lb facs="P2_TL00018"/>« Plantin » Christian</ab> | |
</div> | |
</div> | |
<div type="Paragraph"> | |
<div type="Text"> | |
<ab facs="P2_TB00005"> | |
<lb facs="P2_TL00019"/>Éloge de Landru .... Georges Gabory<lb facs="P2_TL00020"/>L'Harmonie des Mouve<pc type="endhypen" pre="false">-</pc> | |
<lb facs="P2_TL00021"/>ments Florent Fels<lb facs="P2_TL00022"/>Notes sur la Patoghénie . Biaise Cendrars<lb facs="P2_TL00023"/>Les Arts ..... . Maurice Raynal<lb facs="P2_TL00024"/>La Musique Leigh Henry<lb facs="P2_TL00025"/>Mémoires d'un Marin. . Georges Gabory</ab> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</text> | |
</TEI> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment