Skip to content
Snippets Groups Projects
Commit 5e33ffbb authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

Anpassungen für neue Reiseberichte

parent 99663681
No related branches found
No related tags found
No related merge requests found
...@@ -213,6 +213,21 @@ ...@@ -213,6 +213,21 @@
<xsl:when test="count(preceding-sibling::tei:witness) = 4"> <xsl:when test="count(preceding-sibling::tei:witness) = 4">
<xsl:text>(e) </xsl:text> <xsl:text>(e) </xsl:text>
</xsl:when> </xsl:when>
<xsl:when test="count(preceding-sibling::tei:witness) = 5">
<xsl:text>(f) </xsl:text>
</xsl:when>
<xsl:when test="count(preceding-sibling::tei:witness) = 6">
<xsl:text>(g) </xsl:text>
</xsl:when>
<xsl:when test="count(preceding-sibling::tei:witness) = 7">
<xsl:text>(h) </xsl:text>
</xsl:when>
<xsl:when test="count(preceding-sibling::tei:witness) = 8">
<xsl:text>(i) </xsl:text>
</xsl:when>
<xsl:when test="count(preceding-sibling::tei:witness) = 9">
<xsl:text>(j) </xsl:text>
</xsl:when>
</xsl:choose> </xsl:choose>
<xsl:value-of select="."/> <xsl:value-of select="."/>
</fo:block> </fo:block>
...@@ -294,7 +309,7 @@ ...@@ -294,7 +309,7 @@
</xsl:when> </xsl:when>
<!-- vorläufig - kann wegfallen, wenn Stellenkommentar gekürzt wird: --> <!-- vorläufig - kann wegfallen, wenn Stellenkommentar gekürzt wird: -->
<xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. (5r|22v|23v|29v|34v|40v|56v)$') and contains(//tei:title, 'Eichstätt 1611')) or (matches(ancestor::tei:pb/@n, '^fol. (12v|18v|24v|31v|36r|39v|42r)$') and contains(//tei:title, 'Regensburg 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (265r)$') and contains(//tei:title, 'Nürnberg 1612')) or (matches(ancestor::tei:pb/@n, '^fol. (166v)$') and contains(//tei:title, 'Neuburg 1614')) or (matches(ancestor::tei:pb/@n, '(^fol\. 250v$)') and contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615'))"> <xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. (5r|22v|23v|29v|34v|40v|56v)$') and contains(//tei:title, 'Eichstätt 1611')) or (matches(ancestor::tei:pb/@n, '^fol. (12v|18v|24v|31v|36r|39v|42r)$') and contains(//tei:title, 'Regensburg 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (265r)$') and contains(//tei:title, 'Nürnberg 1612')) or (matches(ancestor::tei:pb/@n, '^fol. (166v)$') and contains(//tei:title, 'Neuburg 1614')) or (matches(ancestor::tei:pb/@n, '(^fol\. 250v$)') and contains(//tei:title, 'Wildbad/Heidelberg/Durlach 1615')) or (matches(ancestor::tei:pb/@n, '^fol. 229v01r$') and contains(//tei:title, 'Stuttgart 1616'))">
<xsl:attribute name="font-size">8pt</xsl:attribute> <xsl:attribute name="font-size">8pt</xsl:attribute>
</xsl:when> </xsl:when>
<xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. (72r|89r|90r|110v|112r|114v|118v|121r|123r|123v|126v04r)$') and contains(//tei:title, 'München 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (50r|75r|118v-119r)$') and contains(//tei:title, 'München 1636')) or (matches(ancestor::tei:pb/@n, '^fol. (5r|22v|23v|29v|34v|40v|48r|56v)$') and contains(//tei:title, 'Eichstätt 1611')) or (matches(ancestor::tei:pb/@n, '^fol. 44r$') and contains(//tei:title, 'Regensburg 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (258r|259r|263r|283r|283v|284r|284v|285r|285v|286r|287r|288r|288v|289r|289v|291r|291v|292r|293r|293v)$') and contains(//tei:title, 'Nürnberg 1612'))"> <xsl:when test="(matches(ancestor::tei:pb/@n, '^fol. (72r|89r|90r|110v|112r|114v|118v|121r|123r|123v|126v04r)$') and contains(//tei:title, 'München 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (50r|75r|118v-119r)$') and contains(//tei:title, 'München 1636')) or (matches(ancestor::tei:pb/@n, '^fol. (5r|22v|23v|29v|34v|40v|48r|56v)$') and contains(//tei:title, 'Eichstätt 1611')) or (matches(ancestor::tei:pb/@n, '^fol. 44r$') and contains(//tei:title, 'Regensburg 1613')) or (matches(ancestor::tei:pb/@n, '^fol. (258r|259r|263r|283r|283v|284r|284v|285r|285v|286r|287r|288r|288v|289r|289v|291r|291v|292r|293r|293v)$') and contains(//tei:title, 'Nürnberg 1612'))">
...@@ -565,21 +580,21 @@ ...@@ -565,21 +580,21 @@
<xsl:attribute name="linefeed-treatment">preserve</xsl:attribute> <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
<xsl:attribute name="margin-top">-0.5cm</xsl:attribute> <xsl:attribute name="margin-top">-0.5cm</xsl:attribute>
</xsl:when> --> </xsl:when> -->
<xsl:when test="matches(@n, '^fol. 55v$') and contains(//tei:title, 'München 1636')"> <xsl:when test="matches(@n, '^fol. 55v$') and contains(//tei:title, 'München 1636') or (matches(@n, '^fol. 229v08v$|^fol. 229v05v$') and contains(//tei:title, 'Stuttgart 1616'))">
<xsl:attribute name="break-before">column</xsl:attribute> <xsl:attribute name="break-before">column</xsl:attribute>
<xsl:attribute name="width">12.5cm</xsl:attribute> <xsl:attribute name="width">12.5cm</xsl:attribute>
<xsl:attribute name="margin-left">-0.5cm</xsl:attribute> <xsl:attribute name="margin-left">-0.5cm</xsl:attribute>
<xsl:attribute name="font-size">9pt</xsl:attribute> <xsl:attribute name="font-size">9pt</xsl:attribute>
<xsl:attribute name="wrap-option">wrap</xsl:attribute> <xsl:attribute name="wrap-option">wrap</xsl:attribute>
</xsl:when> </xsl:when>
<xsl:when test="matches(@n, '^fol. 97r$') and contains(//tei:title, 'München 1636')"> <xsl:when test="matches(@n, '^fol. 97r$') and contains(//tei:title, 'München 1636') or (matches(@n, '^fol. 229v07r$') and contains(//tei:title, 'Stuttgart 1616'))">
<xsl:attribute name="break-before">column</xsl:attribute> <xsl:attribute name="break-before">column</xsl:attribute>
<xsl:attribute name="width">12.5cm</xsl:attribute> <xsl:attribute name="width">12.5cm</xsl:attribute>
<xsl:attribute name="margin-left">-0.5cm</xsl:attribute> <xsl:attribute name="margin-left">-0.5cm</xsl:attribute>
<xsl:attribute name="font-size">8pt</xsl:attribute> <xsl:attribute name="font-size">8pt</xsl:attribute>
<xsl:attribute name="wrap-option">wrap</xsl:attribute> <xsl:attribute name="wrap-option">wrap</xsl:attribute>
</xsl:when> </xsl:when>
<xsl:when test="((ancestor::tei:div/@hand = '#druckgraphik' or ancestor::tei:div/@hand = '#druckschrift') and contains(//tei:title, 'München 1636')) or (matches(@n, '^fol. (3v|28v|36r|48r|49r|49v|50r|50v|51r|51v|52r|52v|53r|53v|54r|54v|57r|58v|72v)$') and contains(//tei:title, 'Eichstätt 1611')) or ((ancestor::tei:div/@hand = '#druckgraphik') and contains(//tei:title, 'Regensburg 1613')) or (matches(@n, '^fol. 57v81r$') and contains(//tei:title, 'Regensburg 1613'))"> <xsl:when test="((ancestor::tei:div/@hand = '#druckgraphik' or ancestor::tei:div/@hand = '#druckschrift') and contains(//tei:title, 'München 1636')) or (matches(@n, '^fol. (3v|28v|36r|48r|49r|49v|50r|50v|51r|51v|52r|52v|53r|53v|54r|54v|57r|58v|72v)$') and contains(//tei:title, 'Eichstätt 1611')) or ((ancestor::tei:div/@hand = '#druckgraphik') and contains(//tei:title, 'Regensburg 1613')) or (matches(@n, '^fol. 57v81r$') and contains(//tei:title, 'Regensburg 1613')) or (matches(@n, '^fol. 229v02r$') and contains(//tei:title, 'Stuttgart 1616'))">
<xsl:attribute name="break-before">column</xsl:attribute> <xsl:attribute name="break-before">column</xsl:attribute>
<xsl:attribute name="width">12.5cm</xsl:attribute> <xsl:attribute name="width">12.5cm</xsl:attribute>
<xsl:attribute name="margin-left">-0.5cm</xsl:attribute> <xsl:attribute name="margin-left">-0.5cm</xsl:attribute>
...@@ -713,6 +728,21 @@ ...@@ -713,6 +728,21 @@
<xsl:when test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[@xml:id = $witid] = /tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[position() = 5]"> <xsl:when test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[@xml:id = $witid] = /tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[position() = 5]">
<fo:inline>(e)</fo:inline> <fo:inline>(e)</fo:inline>
</xsl:when> </xsl:when>
<xsl:when test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[@xml:id = $witid] = /tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[position() = 6]">
<fo:inline>(f)</fo:inline>
</xsl:when>
<xsl:when test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[@xml:id = $witid] = /tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[position() = 7]">
<fo:inline>(g)</fo:inline>
</xsl:when>
<xsl:when test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[@xml:id = $witid] = /tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[position() = 8]">
<fo:inline>(h)</fo:inline>
</xsl:when>
<xsl:when test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[@xml:id = $witid] = /tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[position() = 9]">
<fo:inline>(i)</fo:inline>
</xsl:when>
<xsl:when test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[@xml:id = $witid] = /tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit/tei:witness[position() = 10]">
<fo:inline>(j)</fo:inline>
</xsl:when>
</xsl:choose> </xsl:choose>
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
<xsl:value-of select="@n"/> <xsl:value-of select="@n"/>
...@@ -942,6 +972,12 @@ ...@@ -942,6 +972,12 @@
</fo:inline> </fo:inline>
</xsl:template> </xsl:template>
<xsl:template match="tei:hi[not(@rendition)]" mode="step3">
<fo:inline font-weight="bold">
<xsl:apply-templates mode="step3"/>
</fo:inline>
</xsl:template>
<xsl:template match="tei:lb[not(local-name(preceding-sibling::node()[1]) = 'pb')][not(parent::tei:p and (count(preceding-sibling::node()) = 0))]" mode="step3"> <xsl:template match="tei:lb[not(local-name(preceding-sibling::node()[1]) = 'pb')][not(parent::tei:p and (count(preceding-sibling::node()) = 0))]" mode="step3">
<xsl:text>&#xA;</xsl:text> <xsl:text>&#xA;</xsl:text>
<xsl:apply-templates mode="step3"/> <xsl:apply-templates mode="step3"/>
...@@ -955,11 +991,11 @@ ...@@ -955,11 +991,11 @@
</fo:block> </fo:block>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<fo:inline font-size="60%" vertical-align="super" font-family="sans-serif"> <fo:inline font-size="60%" vertical-align="super" font-family="sans-serif">
<xsl:if test="name(preceding-sibling::node()[1][@subtype != 'addition'][@type != 'contemporary']) = 'note'"> <xsl:if test="preceding-sibling::node()[1][not(@subtype = 'addition')][not(@type = 'contemporary')][local-name() eq 'note' or local-name() eq 'app'] or (preceding-sibling::node()[1][local-name() eq 'foreign' or local-name() eq 'hi']/node()[last()][local-name() eq 'app'])">
<xsl:text>, </xsl:text> <xsl:text>, </xsl:text>
</xsl:if> </xsl:if>
<xsl:value-of select="count(preceding::tei:note[@subtype != 'addition']) + count(ancestor::tei:note[@subtype != 'addition']) + count(ancestor::tei:reg) + count(preceding::tei:reg) + 1"/> <xsl:value-of select="count(preceding::tei:note[@subtype != 'addition']) + count(ancestor::tei:note[@subtype != 'addition']) + count(ancestor::tei:reg) + count(preceding::tei:reg) + 1"/>
</fo:inline> </fo:inline>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
...@@ -1117,7 +1153,7 @@ ...@@ -1117,7 +1153,7 @@
<xsl:template name="register"> <xsl:template name="register">
<xsl:param name="reise"/> <xsl:param name="reise"/>
<xsl:if test="not(matches(//tei:title, '(Stuttgart 1616)'))"> <!--kann wegfallen sobald Personenregister für die besagten Reiseberichte fertig --> <xsl:if test="not(matches(//tei:title, '(Stettin 1617)'))"> <!--kann wegfallen sobald Personenregister für die besagten Reiseberichte fertig -->
<fo:page-sequence master-reference="register"> <fo:page-sequence master-reference="register">
<fo:static-content flow-name="xsl-region-before"> <fo:static-content flow-name="xsl-region-before">
<fo:block text-align="left"> <fo:block text-align="left">
...@@ -1413,7 +1449,7 @@ ...@@ -1413,7 +1449,7 @@
</fo:flow> </fo:flow>
</fo:page-sequence> </fo:page-sequence>
</xsl:if> </xsl:if>
<xsl:if test="not(matches(//tei:title, '(Stuttgart 1616)'))"> <!--kann wegfallen sobald Ortsregister für die besagten Reiseberichte fertig --> <xsl:if test="not(matches(//tei:title, '(Stettin 1617)'))"> <!--kann wegfallen sobald Ortsregister für die besagten Reiseberichte fertig -->
<fo:page-sequence master-reference="register"> <fo:page-sequence master-reference="register">
<fo:static-content flow-name="xsl-region-before"> <fo:static-content flow-name="xsl-region-before">
<fo:block text-align="left"> <fo:block text-align="left">
...@@ -1483,7 +1519,7 @@ ...@@ -1483,7 +1519,7 @@
</xsl:if> </xsl:if>
<xsl:if test="(document('../Register/register-work/register-work-a.xml')|document('../Register/register-work/register-work-b.xml')|document('../Register/register-work/register-work-c.xml')|document('../Register/register-work/register-work-d.xml')|document('../Register/register-work/register-work-e.xml')|document('../Register/register-work/register-work-f.xml')|document('../Register/register-work/register-work-g.xml')|document('../Register/register-work/register-work-h.xml')|document('../Register/register-work/register-work-i.xml')|document('../Register/register-work/register-work-j.xml')|document('../Register/register-work/register-work-k.xml')|document('../Register/register-work/register-work-l.xml')|document('../Register/register-work/register-work-m.xml')|document('../Register/register-work/register-work-n.xml')|document('../Register/register-work/register-work-o.xml')|document('../Register/register-work/register-work-p.xml')|document('../Register/register-work/register-work-qr.xml')|document('../Register/register-work/register-work-s.xml')|document('../Register/register-work/register-work-t.xml')|document('../Register/register-work/register-work-u.xml')|document('../Register/register-work/register-work-v.xml')|document('../Register/register-work/register-work-w.xml')|document('../Register/register-work/register-work-xyz.xml'))//tei:item[tei:listBibl[@type = 'occurrences']/tei:bibl[starts-with(., $reise)]]"> <xsl:if test="(document('../Register/register-work/register-work-a.xml')|document('../Register/register-work/register-work-b.xml')|document('../Register/register-work/register-work-c.xml')|document('../Register/register-work/register-work-d.xml')|document('../Register/register-work/register-work-e.xml')|document('../Register/register-work/register-work-f.xml')|document('../Register/register-work/register-work-g.xml')|document('../Register/register-work/register-work-h.xml')|document('../Register/register-work/register-work-i.xml')|document('../Register/register-work/register-work-j.xml')|document('../Register/register-work/register-work-k.xml')|document('../Register/register-work/register-work-l.xml')|document('../Register/register-work/register-work-m.xml')|document('../Register/register-work/register-work-n.xml')|document('../Register/register-work/register-work-o.xml')|document('../Register/register-work/register-work-p.xml')|document('../Register/register-work/register-work-qr.xml')|document('../Register/register-work/register-work-s.xml')|document('../Register/register-work/register-work-t.xml')|document('../Register/register-work/register-work-u.xml')|document('../Register/register-work/register-work-v.xml')|document('../Register/register-work/register-work-w.xml')|document('../Register/register-work/register-work-xyz.xml'))//tei:item[tei:listBibl[@type = 'occurrences']/tei:bibl[starts-with(., $reise)]]">
<xsl:if test="not(matches(//tei:title, '(Stuttgart 1616)'))"> <!--kann wegfallen sobald Objektregister für die besagten Reiseberichte fertig --> <xsl:if test="not(matches(//tei:title, '(Stuttgart 1621|Stettin 1617)'))"> <!--kann wegfallen sobald Objektregister für die besagten Reiseberichte fertig -->
<fo:page-sequence master-reference="register"> <fo:page-sequence master-reference="register">
<fo:static-content flow-name="xsl-region-before"> <fo:static-content flow-name="xsl-region-before">
<fo:block text-align="left"> <fo:block text-align="left">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment