Closes #130, minor formatting
Sometimes in the index of literary sources ("Literaturverzeichnis") cases like these occur were we have a general bibliographic entry and two volumes belonging to it:
<bibl xmlns="http://www.tei-c.org/ns/1.0" xml:id="Varnhagen_1836">
<choice>
<abbr>Varnhagen 1836</abbr>
<expan>Varnhagen von Ense, Karl August: Galerie von Bildnissen aus Rahel's Umgang und Briefwechsel. 2 Bände. Leipzig: Reichenbach 1836.</expan>
</choice>
<idno type="SWB" xml:base="http://swb.bsz-bw.de/DB=2.1/PRS=rdf/PPNSET?PPN=">028276094</idno>
<linkGrp targFunc="active passive">
<link corresp="http://bibframe.org/vocab/hasInstance" target="wrk:Varnhagen_Galerie_Werk #Varnhagen_1836"/>
</linkGrp>
<bibl xml:id="Varnhagen_1836_I">
<choice>
<abbr>Varnhagen 1836 I</abbr>
<expan>Varnhagen von Ense, Karl August: Galerie von Bildnissen aus Rahel's Umgang und Briefwechsel. Erster Theil. Leipzig: Reichenbach 1836.</expan>
</choice>
<idno type="URN" xml:base="http://nbn-resolving.de/urn/resolver.pl?urn=">urn:nbn:de:bvb:12-bsb10067589-4</idno>
<ptr type="fulltext" target="http://opacplus.bsb-muenchen.de/title/BV001166103/ft/bsb10067589?page=1"/>
<linkGrp targFunc="active passive"/>
</bibl>
<bibl xml:id="Varnhagen_1836_II">
<choice>
<abbr>Varnhagen 1836 II</abbr>
<expan>Varnhagen von Ense, Karl August: Galerie von Bildnissen aus Rahel's Umgang und Briefwechsel. Zweiter Theil. Leipzig: Reichenbach 1836.</expan>
</choice>
<idno type="URN" xml:base="http://nbn-resolving.de/urn/resolver.pl?urn=">urn:nbn:de:bvb:12-bsb10067590-2</idno>
<ptr type="fulltext" target="http://opacplus.bsb-muenchen.de/title/BV001166104/ft/bsb10067590?page=1"/>
<linkGrp targFunc="active passive"/>
</bibl>
</bibl>
Up until now this isn't considered and causes ueberblickskommentar.xqm
to try to do string operations like replace
on all descending tei:abbr
which leads to the error
It is a type error if, during the static analysis phase, an expression is found to have a static type that is not appropriate for the context in which the expression occurs, or during the dynamic evaluation phase, the dynamic type of a value does not match a required type as specified by the matching rules in 2.5.4 SequenceType Matching. Invalid cardinality for parameter $vp0. Expected zero or one, got 3.
This MR solves this issue (closes #130).