diff --git a/scripts/2021/dc.xml b/skripte/2021/dc.xml
similarity index 100%
rename from scripts/2021/dc.xml
rename to skripte/2021/dc.xml
diff --git a/scripts/2021/journal_html.xsl b/skripte/2021/journal_html.xsl
similarity index 100%
rename from scripts/2021/journal_html.xsl
rename to skripte/2021/journal_html.xsl
diff --git a/scripts/2021/readme.md b/skripte/2021/readme.md
similarity index 100%
rename from scripts/2021/readme.md
rename to skripte/2021/readme.md
diff --git a/scripts/2021/xml2dc.xsl b/skripte/2021/xml2dc.xsl
similarity index 100%
rename from scripts/2021/xml2dc.xsl
rename to skripte/2021/xml2dc.xsl
diff --git a/scripts/2021/xsl-fo_print.xsl b/skripte/2021/xsl-fo_print.xsl
similarity index 100%
rename from scripts/2021/xsl-fo_print.xsl
rename to skripte/2021/xsl-fo_print.xsl
diff --git a/scripts/2021/zfdg_sb03_doi.xsl b/skripte/2021/zfdg_sb03_doi.xsl
similarity index 100%
rename from scripts/2021/zfdg_sb03_doi.xsl
rename to skripte/2021/zfdg_sb03_doi.xsl
diff --git a/scripts/2021/zfdg_xml2xml__transform.xsl b/skripte/2021/zfdg_xml2xml__transform.xsl
similarity index 100%
rename from scripts/2021/zfdg_xml2xml__transform.xsl
rename to skripte/2021/zfdg_xml2xml__transform.xsl
diff --git a/skripte/2022/journal_sb_html_sb05.xsl b/skripte/2022/journal_sb_html_sb05.xsl
new file mode 100644
index 0000000000000000000000000000000000000000..1d1c30d1b87e903868248e30b6eff5d5ebdea4c1
--- /dev/null
+++ b/skripte/2022/journal_sb_html_sb05.xsl
@@ -0,0 +1,1744 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- Transformationsskript für die Beiträge in der Zeitschrift für digitale Geisteswissenschaften,
+    Ersteller: Marcus Baumgarten, baumgarten@hab.de
+    Herzog August Bibliothek Wolfenbüttel
+    Forschungsverbund MWW
+    Das Skript steht unter einer CC BY-SA 3.0 Lizenz-->
+<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:mets="http://www.loc.gov/METS/"
+    xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:exist="http://exist.sourceforge.net/NS/exist"
+    xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common"
+    extension-element-prefixes="date exsl" exclude-result-prefixes="tei mets xlink exist"
+    version="2.0">
+
+
+    <xsl:output encoding="UTF-8" indent="yes" method="html" doctype-public="-//W3C//DTD HTML 4.01//EN"
+        doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>
+
+
+    <xsl:strip-space elements="*"/>
+    <xsl:param name="dir"/>
+    <xsl:param name="q"/>
+    <xsl:param name="qtype"/>
+    <xsl:param name="distype"/>
+    <xsl:param name="pvID"/>
+    <xsl:param name="footerXML"/>
+    <xsl:param name="footerXSL"/>
+    <xsl:param name="view"/>
+    <xsl:variable name="smallcase" select="'&#173;'"/>
+    <xsl:variable name="uppercase" select="'-'"/>
+    <xsl:variable name="gbv">
+        <xsl:text>http://gso.gbv.de/DB=2.1/PPN?PPN=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="opac">
+        <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/PPN?PPN=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="gnd">
+        <xsl:text>http://d-nb.info/gnd/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="vd16">
+        <xsl:text>http://gateway-bayern.de/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="v1"><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level='a']"></xsl:value-of></xsl:variable>
+    <xsl:variable name="tadirah">
+        <xsl:text>http://tadirah.dariah.eu/vocab/index.php?tema=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="img">
+        <xsl:text>http://www.zfdg.de/sites/default/files/medien/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="img2">
+        <xsl:text>http://www.zfdg.de/sites/default/files/styles/medium_in_artikel/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="doi">
+        <xsl:text>https://doi.org/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="now" select="current-dateTime()"/>
+
+    <xsl:template match="/">
+
+
+
+
+
+
+        <html>
+            <head>
+                <meta http-equiv="Content-Type" content="text/html;"/>
+                <title>ZfdG Beitrag</title>
+
+
+                <link rel="stylesheet" type="text/css" href="style.css"/>
+
+                <!--  Steyer: Einbinden des Junicode-Schriftsatzes  -->
+                <style>
+                    @font-face { font-family:'junicode';
+                    <!--
+ Herunterladen eines gleichnamigen lokalen Schriftsatzes verhindern 
+-->
+                    src: local ('Ø'); src: local ('Junicode');
+                    <!--  Einbinden  -->
+                    src: url('http://diglib.hab.de/rules/fonts/Junicode.woff') format('woff');
+                </style>
+                <!--  Ende Ergänzung  -->
+
+            </head>
+
+            <!-- Bedingungen und Regeln: Inhaltsverzeichnis an Abstracts gebunden -->
+  
+            <body>
+                <!--  Dokumentkopf -->
+                
+                <!-- Titel -->
+                <div id="caption">
+                    <xsl:element name="span">
+                        <xsl:attribute name="class">Z3988</xsl:attribute>
+                        <xsl:attribute name="title">
+                            <xsl:text>url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rfr_id=info%3Asid%2Fzotero.org%3A2&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=article&amp;rft.atitle=</xsl:text>
+                            <xsl:value-of select="replace($v1, ' ', '%20')"></xsl:value-of>
+                            <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name">
+                                <xsl:text>&amp;rft.au=</xsl:text>
+                                <xsl:value-of select="tei:forename"></xsl:value-of>
+                                <xsl:text>%20</xsl:text>
+                                <xsl:value-of select="tei:surname"></xsl:value-of>
+                            </xsl:for-each>  
+                            <xsl:text>&amp;rft.series=Zeitschrift%20f%C3%BCr%20digitale%20Geisteswissenschaften</xsl:text>
+                            <xsl:text>&amp;rft.date=</xsl:text>
+                            <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date/@when"></xsl:value-of>
+                            <xsl:text>&amp;rft_id=https://doi.org/</xsl:text>
+                            <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"></xsl:value-of>
+                            <xsl:text>&amp;rft.language=</xsl:text><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:langUsage/tei:language[1]/@ident"></xsl:value-of>
+                            <xsl:text>&amp;rft.rights=CC BY-SA 4.0</xsl:text>
+                        </xsl:attribute>
+                    </xsl:element>
+                    <div>
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                <xsl:for-each
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName">
+                                    <div style="margin: 1em 0 1em 0;">
+                                        <xsl:apply-templates select="tei:name/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename[2]">
+                                            <xsl:apply-templates select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename[2]"/>
+                                        <xsl:text> </xsl:text>
+                                        </xsl:if>
+                                        <xsl:apply-templates select="tei:name/tei:surname"/>
+                                        <xsl:text>  </xsl:text>
+                                        <xsl:element name="a">
+                                            <xsl:attribute name="href">
+                                                <xsl:text>javascript:switchlayer('author</xsl:text>
+                                                <xsl:number
+                                                    count="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt"/>
+                                                <xsl:text>');</xsl:text>
+                                            </xsl:attribute>
+                                            
+                                            <img style="margin-left: 1%"
+                                                src="http://www.zfdg.de/sites/all/themes/fvmww/images/arrow-down.png"
+                                                alt="Autoreninformationen"/>
+                                        </xsl:element>
+                                    </div>
+                                    <xsl:element name="div">
+                                        <xsl:attribute name="style">
+                                            <xsl:text>display:none; width:100%; background-color: #fafafa;</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:attribute name="id">
+                                            <xsl:text>author</xsl:text>
+                                            <xsl:number
+                                                count="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:text> Kontakt: </xsl:text>
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:text>mailto:</xsl:text>
+                                                <xsl:value-of select="tei:email"/>
+                                            </xsl:attribute>
+                                            
+                                            <xsl:apply-templates select="tei:email"/>
+                                        </a>
+                                        <br/>
+                                        <xsl:text>Institution: </xsl:text>
+                                        <xsl:apply-templates select=" following::tei:orgName[1]"/>
+                                        <xsl:text> </xsl:text>
+                                        <br/>
+                                        <xsl:if test="tei:idno[@type = 'gnd']">
+                                            <xsl:text>GND: </xsl:text>
+                                            <a>
+                                                <xsl:attribute name="href">
+                                                    <xsl:text> http://d-nb.info/gnd/</xsl:text>
+                                                    <xsl:value-of select="tei:idno[@type = 'gnd']"/>
+                                                </xsl:attribute>
+                                                <xsl:attribute name="target"
+                                                    ><xsltext>_blank</xsltext>:</xsl:attribute>
+                                                <xsl:value-of select="tei:idno[@type = 'gnd']"/>
+                                            </a>
+                                            <br/>
+                                        </xsl:if>
+                                        <xsl:if test="tei:idno[@type = 'orcid']">
+                                            <xsl:text>ORCID: </xsl:text>
+                                            <a>
+                                                <xsl:attribute name="href"><xsl:text>https://orcid.org/</xsl:text><xsl:value-of select="tei:idno[@type = 'orcid']"/></xsl:attribute>
+                                                <xsl:attribute name="target"
+                                                    ><xsltext>_blank</xsltext>:</xsl:attribute>
+                                                <xsl:value-of select="tei:idno[@type = 'orcid']"/>
+                                            </a>
+                                            <br/>
+                                        </xsl:if>
+                                        <!-- CREDIT Rollen -->
+                                        <xsl:if test="preceding-sibling::tei:idno[@type = 'credit']">
+                                            <xsl:for-each select="preceding-sibling::tei:idno[@type='credit']">
+                                            <xsl:text>Beitrags-Rolle (CRediT): </xsl:text>
+                                            <a>
+                                                <xsl:attribute name="href">
+                                                    <xsl:value-of select="@corresp"/></xsl:attribute>
+                                                <xsl:attribute name="target">
+                                                    <xsltext>_blank</xsltext>
+                                                </xsl:attribute>
+                                                <xsl:value-of select="preceding-sibling::tei:idno[@type = 'credit']"/>
+                                            </a>
+                                            <br/>
+                                            </xsl:for-each>
+                                        </xsl:if>
+                                    </xsl:element>
+                                </xsl:for-each>
+                            </xsl:when>
+                        </xsl:choose>
+                        
+                    </div>
+               
+                    <div id="info1">
+                        <hr class="one"/>
+                        <!--  <xsl:text>DOI: </xsl:text><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno[@type='doi']"/><br/> -->
+
+
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno/@type = 'doi'">
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>DOI: </xsl:text>
+                                    </span>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:value-of select="$doi"/>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                        />
+                                    </a>
+                                </p>
+                            </xsl:when>
+                            <xsl:otherwise>
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>DOI: </xsl:text>
+                                    </span>
+                                    <xsl:text>In Kürze</xsl:text>
+                                </p>
+                            </xsl:otherwise>
+                        </xsl:choose>
+
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Nachweis im OPAC der Herzog August Bibliothek: </xsl:text>
+                            </span>
+                            <xsl:choose>
+                                <xsl:when
+                                    test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']">
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/XMLPRS=N/PPN?PPN=</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:attribute name="target">
+                                            <xsl:text>_blank</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']"
+                                        />
+                                    </a>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:text>In Kürze</xsl:text>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </p>
+
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Erstveröffentlichung: </xsl:text>
+                            </span>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date"/>
+                               
+                        </p>
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Lizenz:</xsl:text>
+                            </span>
+                            <xsl:text> Sofern nicht anders angegeben </xsl:text>
+                            <xsl:choose>
+                                <xsl:when
+                                    test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:availability[1]/tei:licence[@target = 'http://creativecommons.org/licenses/by/4.0/']">
+
+
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>http://creativecommons.org/licenses/by-sa/4.0/</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:attribute name="rel">
+                                            <xsl:text>license</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:attribute name="target">
+                                            <xsl:text>_blank</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:element name="img">
+                                            <xsl:attribute name="alt">
+                                                <xsl:text>Creative Commons Lizenzvertrag</xsl:text>
+                                            </xsl:attribute>
+                                            <xsl:attribute name="src">
+                                                <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text>
+                                            </xsl:attribute>
+                                        </xsl:element>
+                                        <br/>
+                                    </a>
+
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:availability[1]/tei:licence"
+                                    />
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </p>
+                    </div>
+                    <div id="info2">
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Medienlizenzen: </xsl:text>
+                            </span>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl/tei:p[2]"
+                            />
+                        </p>
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Letzte Überprüfung aller Verweise: </xsl:text>
+                            </span>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl//tei:date"
+                            />
+                        </p>
+
+
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']">
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>GND-Verschlagwortung: </xsl:text>
+                                    </span>
+                                    <xsl:for-each
+                                        select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']/tei:term">
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:value-of select="$gnd"/>
+                                                <xsl:value-of select="./tei:ref/@target"/>
+                                            </xsl:attribute>
+                                            <xsl:attribute name="target">
+                                                <xsl:text>_blank</xsl:text>
+                                            </xsl:attribute>
+                                            <xsl:value-of select="."/>
+                                        </a>
+                                        <xsl:text> | </xsl:text>
+                                    </xsl:for-each>
+                                </p>
+                            </xsl:when>
+                        </xsl:choose>
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']">
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>TaDiRAH-Verschlagwortung: </xsl:text>
+                                    </span>
+                                    <xsl:for-each
+                                        select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']/tei:term">
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:value-of select="$tadirah"/>
+                                                <xsl:value-of select="./tei:ref/@target"/>
+                                            </xsl:attribute>
+                                            <xsl:attribute name="target">
+                                                <xsl:text>_blank</xsl:text>
+                                            </xsl:attribute>
+                                            <xsl:value-of select="."/>
+                                        </a>
+                                        <xsl:text> | </xsl:text>
+                                    </xsl:for-each>
+                                </p>
+                            </xsl:when>
+                        </xsl:choose>
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Empfohlene Zitierweise: </xsl:text>
+                            </span>
+                            <xsl:choose>
+                                <xsl:when
+                                    test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno/@type = 'doi'">
+                                    <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                    <xsl:text> </xsl:text>
+                                    <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"/>
+
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    
+                                    
+                                    
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    
+                                    
+                                    
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+
+                                    <xsl:text>: </xsl:text>
+                                   <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title"/>
+                                    <xsl:text>. In: Fabrikation von Erkenntnis – Experimente in den Digital Humanities. Hg. von Manuel Burghardt, Lisa Dieckmann, Timo Steyer, Peer Trilcke, Niels Walkowski, Joëlle Weis, Ulrike Wuttke. Wolfenbüttel 2021 - 2022. (= Zeitschrift für digitale Geisteswissenschaften / Sonderbände, 5)</xsl:text>
+                                    <xsl:text> </xsl:text>
+
+                                    <xsl:text> text/html Format.</xsl:text>
+                                    <!-- <xsl:text>Eingesehen am: </xsl:text>
+                                    <xsl:value-of  select="$now"/>.   -->
+                                    <xsl:text> DOI: </xsl:text>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:value-of select="$doi"/>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                        />
+                                    </a>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:text>in Kürze verfügbar</xsl:text>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </p>
+
+                        <hr class="one"/>
+                    </div>
+
+                </div>
+
+
+
+                <div class="content">
+                    <!-- Haupttext -->
+                    <xsl:apply-templates
+                        select="tei:TEI/tei:text//tei:div[@type = 'chapter'] | tei:TEI/tei:text//tei:div[@type = 'abstract']"
+                    />
+                </div>
+
+
+         
+
+                <!-- Fussnotenbereich  -->
+
+                <div id="fussnoten">
+                    <xsl:if test="tei:TEI/tei:text/tei:body//tei:note[@type = 'footnote']">
+                        <hr/>
+
+                    </xsl:if>
+
+
+                    <a name="footnotes"/>
+                    <xsl:choose>
+                        <xsl:when test="tei:TEI/tei:text/tei:body/tei:div[@type = 'footnotes']">
+                            <!--  Wenn es einen Fussnotenbereich gibt -->
+                            <xsl:apply-templates
+                                select="tei:TEI/tei:text/tei:body/tei:div[@type = 'footnotes']"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <!--  andernfalls notes auswerten -->
+                            <div class="footnote">
+                                <h2>Fußnoten</h2>
+                                <ul class="footnote">
+                                    <xsl:for-each
+                                        select="tei:TEI/tei:text/tei:body//tei:note[@type = 'footnote']">
+
+                                        <li class="footnote">
+                                            <div class="footnote2">
+                                                <xsl:attribute name="id">
+                                                  <xsl:text>fn</xsl:text>
+                                                  <xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"/>
+                                                </xsl:attribute>
+                                                <xsl:attribute name="href">
+                                                  <xsl:text>#fna</xsl:text><xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"/>
+                                                </xsl:attribute>[<a><xsl:attribute name="href">
+                                                  <xsl:text>#fna</xsl:text><xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"
+                                                  /></xsl:attribute><xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"/></a>]</div>
+                                            <div class="footnote3">
+                                                <xsl:apply-templates/>
+                                            </div>
+                                        </li>
+                                        <br/>
+                                    </xsl:for-each>
+                                </ul>
+                            </div>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </div>
+                <!-- Bibliographie -->
+                <!-- auskommentiert MB: 28.10.20 -->
+                <div class="bibliography">
+                    <hr/>
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body//tei:div[@type = 'bibliography']"
+                    />
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'bibliography2']"
+                    /> 
+                </div>
+                                
+                <!-- Abbildungsnachweis -->
+                <div class="abbildungsnachweis">
+                    <hr/>
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body//tei:div[@type = 'abbildungsnachweis']"
+                    />
+                </div>
+                <!-- Glossar -->
+                <xsl:choose>
+                    <xsl:when test="//tei:TEI/tei:text[1]/tei:body[1]/tei:div[1]/tei:div[@type='glossar']">
+                <div class="glossar">
+                    <hr/>
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'glossar']"/>
+                </div>
+                    </xsl:when>
+                </xsl:choose>
+                <!-- Ende main -->
+            </body>
+        </html>
+    </xsl:template>
+
+    <xsl:template match="tei:body | tei:front">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!--header-->
+    <!-- editor, contributer etc. -->
+    <xsl:template match="tei:respStmt">
+        <xsl:if test="position() != 1">
+            <xsl:text>,</xsl:text>
+        </xsl:if>
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="tei:resp"/>
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="tei:name"/>
+    </xsl:template>
+
+    <!-- Front -->
+
+    <xsl:template match="tei:titlePage">
+        <p class="content">
+            <xsl:apply-templates/>
+        </p>
+    </xsl:template>
+
+    <xsl:template match="tei:docTitle">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+
+    <xsl:template match="tei:docDate">
+        <p class="content">
+            <xsl:apply-templates/>
+        </p>
+    </xsl:template>
+
+    <xsl:template match="tei:docAuthor">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+
+    <xsl:template match="tei:titlePart">
+        <p class="content">
+            <xsl:apply-templates/>
+        </p>
+    </xsl:template>
+
+
+    <!--body-->
+    <xsl:template match="tei:div[not(@type='footnotes')] | tei:div1[not(@type='footnotes')] | tei:div2[not(@type='footnotes')] | tei:div3[not(@type='footnotes')]">
+    
+         <a>
+                <xsl:attribute name="name">
+                    <xsl:text>div</xsl:text>
+                    <xsl:number level="any"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+            <xsl:if test="@xml:id[starts-with(.,'org') or starts-with(.,'ue')]">
+                <a>
+                    <xsl:attribute name="name">
+                        <xsl:value-of select="@xml:id"/>
+                    </xsl:attribute>
+                    <xsl:text> </xsl:text>
+                </a>
+            </xsl:if>
+            
+            <xsl:if test="@type = 'abstract'">
+                <xsl:element name="div">
+                    <xsl:attribute name="id"><xsl:text>abstract</xsl:text></xsl:attribute>
+                    
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:if>
+            <xsl:if test="@type ='chapter'">
+                <xsl:element name="div">
+                    <xsl:attribute name="id"><xsl:text>chapter</xsl:text></xsl:attribute>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:if>
+            <xsl:if test="@type ='subchapter'">
+                <xsl:element name="div">
+                    <xsl:attribute name="id"><xsl:text>subchapter</xsl:text></xsl:attribute>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:if>
+            <xsl:if test="@type ='bibliography'">
+                <xsl:element name="div">
+                    <xsl:attribute name="id"><xsl:text>bibliography</xsl:text></xsl:attribute>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:if>
+            
+            <xsl:if test="@type ='bibliography2'">
+                <xsl:element name="div">
+                    <xsl:attribute name="id"><xsl:text>bibliography2</xsl:text></xsl:attribute>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:if>
+        
+        <xsl:if test="@type ='bibliography3'">
+            <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>bibliography3</xsl:text></xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:if>
+            
+            <xsl:if test="@type ='abbildungsnachweis'">
+                <xsl:element name="div">
+                    <xsl:attribute name="id"><xsl:text>abbildungsnachweis</xsl:text></xsl:attribute>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:if>
+        </xsl:template>
+    
+    
+        <!--    Ueberschriften-->
+
+    <xsl:template match="h">
+
+        <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+        <a>
+            <xsl:attribute name="name">
+                <xsl:text>hd</xsl:text>
+                <xsl:number level="any"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+        <h2>
+            <xsl:apply-templates/>
+        </h2>
+    </xsl:template>
+
+
+    <!-- xsl:mode ansehen, p als type grosszitat? -->
+
+    <!--    Links -->
+    <xsl:template match="tei:ref">
+        <xsl:choose>
+            <xsl:when test="@type = 'footnote'">
+                <a>
+                    <xsl:attribute name="name">
+                        <xsl:text>fna</xsl:text>
+                        <xsl:value-of select="."/>
+                    </xsl:attribute>
+                    <a>
+                        <xsl:attribute name="href">
+                            <xsl:value-of select="@target"/>
+                        </xsl:attribute>
+                        <xsl:value-of select="."/>
+                    </a>
+                </a>
+            </xsl:when>
+
+            <xsl:when test="@type = 'intern'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_self</xsl:text>                    
+                    </xsl:attribute>
+                             <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'verweis'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="title">
+                           <xsl:value-of select="."/>
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'glossar'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'extern'">
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'graphic' and not(parent::tei:desc)">
+
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <!--      <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute> -->
+                    <span class="medium">
+                        <xsl:apply-templates/>
+                    </span>
+                </a>
+            </xsl:when>
+
+            <xsl:when test="@type = 'bibliography'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:otherwise>
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:ptr">
+        <xsl:apply-templates/>
+        <xsl:choose>
+            <xsl:when test="@type = 'google_books'"> [<a>
+                    <xsl:attribute name="href">
+                        <xsl:text>javascript:show_annotation_html('</xsl:text><xsl:value-of
+                            select="$dir"/><xsl:text>','</xsl:text><xsl:value-of select="@target"
+                        /><xsl:text>',400,600)</xsl:text>
+                    </xsl:attribute>
+                    <xsl:text>Google Books</xsl:text></a>] </xsl:when>
+            <xsl:when test="starts-with(@target, 'http://')"> [<a>
+                    <xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute>
+                    <xsl:attribute name="target">_blank</xsl:attribute>
+                    <xsl:text>Link</xsl:text>
+                </a>] </xsl:when>
+            <xsl:when test="@type = 'opac'"> [<a href="{normalize-space(concat($opac,@cRef))}"
+                    target="_blank">Nachweis im OPAC</a>] </xsl:when>
+            <xsl:when test="@type = 'vd16'"> [<a href="{normalize-space(concat($vd16,@cRef))}"
+                target="_blank">Nachweis im VD16</a>] </xsl:when>
+            <xsl:when test="@type = 'varia'"> [<a>
+                    <xsl:attribute name="href"><xsl:value-of select="@cRef"/>
+                    </xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>
+                    <xsl:text>Nachweis</xsl:text></a>] </xsl:when>
+            <xsl:when test="@type = 'gbv'"> [<a href="{normalize-space(concat($gbv,@cRef))}"
+                    target="_blank">Nachweis im GVK</a>] </xsl:when>
+        </xsl:choose>
+ 
+        <xsl:choose>
+            <xsl:when test="@subtype = 'google_books'"> [<a>
+                <xsl:attribute name="href">
+                    <xsl:text>javascript:show_annotation_html('</xsl:text><xsl:value-of
+                        select="$dir"/><xsl:text>','</xsl:text><xsl:value-of select="@target"
+                        /><xsl:text>',400,600)</xsl:text>
+                </xsl:attribute>
+                <xsl:text>Google Books</xsl:text></a>] </xsl:when>
+            <xsl:when test="starts-with(@target, 'http://')"> [<a>
+                <xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute>
+                <xsl:attribute name="target">_blank</xsl:attribute>
+                <xsl:text>Link</xsl:text>
+            </a>] </xsl:when>
+            <xsl:when test="@subtype = 'opac'"> [<a href="{normalize-space(concat($opac,@cRef))}"
+                target="_blank">Nachweis im OPAC</a>] </xsl:when>
+            <xsl:when test="@subtype = 'varia'"> [<a>
+                <xsl:attribute name="href"><xsl:value-of select="@cRef"/>
+                </xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>
+                <xsl:text>Nachweis</xsl:text></a>] </xsl:when>
+            <xsl:when test="@subtype = 'gbv'"> [<a href="{normalize-space(concat($gbv,@cRef))}"
+                target="_blank">Nachweis im GVK</a>] </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+    
+    
+    
+    
+    
+
+    <xsl:template match="tei:list">
+        <xsl:choose>
+            <xsl:when test="@type = 'unordered'">
+                <xsl:element name="ul">
+                    <xsl:attribute name="class">ul_article</xsl:attribute>
+                    <xsl:for-each select="tei:item">
+                        <xsl:element name="li"><xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute>
+                            <xsl:apply-templates/>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="@type = 'ordered'">
+                <xsl:element name="ol">
+                    <xsl:attribute name="class">ol_article</xsl:attribute>
+                    <xsl:for-each select="tei:item">
+                        <xsl:element name="li">
+                            <xsl:apply-templates/>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="@type = 'gloss'">
+                <xsl:element name="table">
+                    <xsl:for-each select="tei:label">
+                        <xsl:element name="tr">
+                            <xsl:element name="td">
+                                <xsl:attribute name="id">
+                                    <xsl:value-of select="@xml:id"/>
+                                </xsl:attribute>
+                                <xsl:apply-templates select="tei:term"/>
+                                <br/>
+                                <br/>
+                            </xsl:element>
+
+                            <xsl:element name="td">
+                                <xsl:apply-templates
+                                    select="following-sibling::tei:item[position() = 1]/tei:gloss"/>
+                                <a>
+
+                                    <xsl:attribute name="href">
+                                        <xsl:text>#g</xsl:text>
+                                        <xsl:value-of select="@xml:id"/>
+                                    </xsl:attribute>
+                                    <xsl:text> [Zurück zum Text]</xsl:text>
+                                </a>
+                                <br/>
+                                <br/>
+                            </xsl:element>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:when>
+            
+            <xsl:otherwise>
+                <xsl:element name="ul">
+                    <xsl:for-each select="tei:item">
+                        <xsl:element name="li">
+                            <xsl:apply-templates/>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+
+
+    <xsl:template match="tei:bibl[parent::tei:listBibl]">
+        <xsl:element name="li">
+            <xsl:attribute name="class">biblio</xsl:attribute>
+            <xsl:attribute name="id">
+                <xsl:value-of select="@xml:id"/>
+            </xsl:attribute>
+            <xsl:apply-templates/>
+        </xsl:element>
+        <br/>
+    </xsl:template>
+
+    <xsl:template match="tei:listBibl">
+        <ul class="bibl">
+            <xsl:apply-templates/>
+        </ul>
+    </xsl:template>
+
+
+
+
+    <!-- footnotes, annotations -->
+
+
+
+    <xsl:template match="tei:note">
+
+        <xsl:param name="caption"/>
+
+        <xsl:choose>
+            <xsl:when test="parent::tei:div[@type = 'footnotes']">
+                <!--   Fussnoten am Text- oder Seitenende -->
+                <div class="footnote">
+                    <a>
+                        <xsl:attribute name="name">
+                            <xsl:text>fn</xsl:text>
+                            <xsl:value-of select="@n"/>
+                        </xsl:attribute>
+                        <a>
+                            <xsl:attribute name="href">
+                                <xsl:text>#fna</xsl:text>
+                                <xsl:value-of select="@n"/>
+                            </xsl:attribute>
+                            <xsl:value-of select="@n"/>
+
+                        </a>
+                    </a>
+                    <xsl:apply-templates/>
+                </div>
+            </xsl:when>
+            <!--  in Text integriert, nur Verweis , Fussnotenabschnitt mit foreach generiert -->
+            <xsl:when test="@type = 'footnote'">
+                <a>
+                    <xsl:attribute name="id">
+                        <xsl:text>fna</xsl:text>
+                        <xsl:number level="any" count="tei:note[@type = 'footnote']"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="class">
+                        <xsl:text>fn</xsl:text>
+                    </xsl:attribute>
+                    <xsl:attribute name="href">
+                        <xsl:text>#fn</xsl:text>
+                        <xsl:number level="any" count="tei:note[@type = 'footnote']"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="title">
+                        <xsl:copy-of select="normalize-space(.)"/>
+                    </xsl:attribute>
+                    <xsl:value-of select="$caption"/>
+                    <xsl:text>[</xsl:text>
+                    <xsl:number level="any" count="tei:note[@type = 'footnote']"/>
+                    <xsl:text>]</xsl:text>
+                </a>
+            </xsl:when>
+            <xsl:otherwise> </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template match="tei:g">
+        <span  class="mufi"><xsl:apply-templates></xsl:apply-templates></span>
+    </xsl:template>
+
+    <!-- Formatiere Fußnotenreferenz für aktuellen Knoten -->
+    <!-- <xsl:template name="footnote">
+        <a>
+            <xsl:attribute name="id">
+                <xsl:text>fna</xsl:text>
+                <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+            </xsl:attribute>
+            <xsl:attribute name="class">
+                <xsl:text>fn</xsl:text>                    
+            </xsl:attribute>
+            <xsl:attribute name="href">
+                <xsl:text>#fn</xsl:text>
+                <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+            </xsl:attribute>
+            <xsl:attribute name="title">
+                <xsl:copy-of select="normalize-space(.)"/>
+            </xsl:attribute>
+            <xsl:text>[</xsl:text><xsl:number level="any" count="tei:note[@type ='footnote']"/> <xsl:text>]</xsl:text>
+        </a>       
+    </xsl:template>
+    
+   <xsl:template match="tei:note[@type='footnote'][not(preceding-sibling::tei:quote[@type='grosszitat'])]">
+       <xsl:call-template name="footnote"></xsl:call-template>
+   </xsl:template> -->
+
+
+    <!-- Versionshistorie -->
+    <xsl:template match="tei:TEI//tei:teiHeader/tei:revisionDesc">
+    <xsl:choose>
+        <xsl:when test=".">
+            <xsl:element name="div"><xsl:attribute name="id">versionsbox</xsl:attribute>
+                <xsl:for-each select="tei:change">
+                    <xsl:element name="h3"><xsl:text>Version </xsl:text><xsl:value-of select="@n"/><xsl:text> (</xsl:text><xsl:value-of select="@when"/><xsl:text>)</xsl:text></xsl:element>
+                    <xsl:element name="p">
+                        <xsl:value-of select="tei:p"/>
+                    </xsl:element>
+                </xsl:for-each>
+            </xsl:element>    
+        </xsl:when>
+    </xsl:choose>
+</xsl:template>
+
+
+    <xsl:template match="tei:argument">
+        <xsl:choose>
+            <xsl:when test="@xml:lang = 'de'">
+                <div id="abstract_de" class="abstract">
+                    <h1>Abstract</h1>
+                    
+                    <xsl:apply-templates/>
+                </div>
+            </xsl:when>
+            <xsl:when test="@xml:lang = 'en'">
+                <hr class="one"/>
+                <div id="abstract_en" class="abstract">
+                    <!--        <h1>Abstract (englisch)</h1> -->
+                    
+                    <xsl:apply-templates/>
+                </div>
+                
+                <!-- Versionshistorie -->
+                <hr class="one"/>
+                <xsl:for-each select="/tei:TEI//tei:teiHeader/tei:revisionDesc">
+                    <xsl:if test="tei:change[@status='published']">
+                        <xsl:element name="div"><xsl:attribute name="id">versionsbox</xsl:attribute>
+                            <xsl:for-each select="tei:change">
+                                <xsl:element name="h3"><xsl:text>Version </xsl:text><xsl:value-of select="@n"/><xsl:text> (</xsl:text><xsl:value-of select="substring(@when,9)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(@when,6,2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(@when,1,4)"/><xsl:text>)</xsl:text></xsl:element>
+                                <xsl:element name="p">
+                                    <xsl:value-of select="tei:p"/>
+                                </xsl:element>
+                            </xsl:for-each>
+                        </xsl:element>  
+                    </xsl:if>
+                </xsl:for-each>
+                
+                
+                
+                <!-- Inhaltsuebersicht -->
+                
+                <div id="headings">
+                    <br/>
+                    <br/>
+                    <hr class="two"/>
+                    <br/>
+                    <ul>
+                        <!-- MB 12.11.21 als geschachtelte Liste angelegt -->
+                        <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+                           <!-- <xsl:if test="parent::tei:div[@type='chapter']">-->
+                                <li>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>#hd</xsl:text>
+                                            <xsl:number level="any"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="."/>
+                                    </a>
+                                   <!-- <xsl:apply-templates select="../tei:argument/tei:p">
+                                        <xsl:with-param name="caption">true</xsl:with-param>
+                                    </xsl:apply-templates>-->
+                                </li>                                      
+                            <!--</xsl:if>-->    
+                            <!--<ul>
+                            <xsl:if test="parent::tei:div[@type='subchapter']">
+                                
+                                    <li>
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:text>#hd</xsl:text>
+                                                <xsl:number level="any"/>
+                                            </xsl:attribute>
+                                            <xsl:value-of select="."/>
+                                        </a>                                       
+                                    </li> 
+                                </xsl:if>
+                            </ul>-->
+                        </xsl:for-each> 
+                        <!--<xsl:apply-templates/>-->
+                    </ul>
+                </div>
+                <br/>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+
+    <xsl:template match="tei:head">
+
+        <a>
+            <xsl:attribute name="name">
+                <xsl:text>hd</xsl:text>
+                <xsl:number level="any"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+        <xsl:choose>
+            <xsl:when test="parent::tei:div[@type = 'subchapter']">
+                <h3>
+                    <div style="position:relative;width:90%;">
+                        <xsl:apply-templates/>
+                    </div>
+                </h3>
+            </xsl:when>
+            <xsl:otherwise>
+
+                <h2>
+                    <div style="position:relative;width:90%;">
+                        <xsl:apply-templates/>
+                    </div>
+                </h2>
+
+            </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+
+
+
+    <!-- closer -->
+    <xsl:template match="tei:closer">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- closer -->
+    <xsl:template match="tei:opener">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- closer -->
+    <xsl:template match="tei:salute">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- Namen -->
+    <xsl:template match="tei:name">
+        <xsl:apply-templates/>
+    </xsl:template>
+    <!-- Datum -->
+    <xsl:template match="tei:dateline">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="tei:date">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- index  erst mal auslassen-->
+    <xsl:template match="tei:index"/> 
+
+    <!--  Anker fuer Spruenge im Text -->
+    <xsl:template match="tei:anchor">
+        <a>
+            <xsl:attribute name="name">
+                <xsl:value-of select="@xml:id"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+    </xsl:template>
+
+    <!--  Textkritik -->
+
+    <xsl:template match="tei:app">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="tei:rdg">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="tei:l">
+        <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+        <xsl:for-each select=".">
+            <xsl:apply-templates/><br/>
+        </xsl:for-each>
+    </xsl:template>
+
+<!-- reinkopiert von LK, 24.8.2021 -->
+    <xsl:template match="tei:quote">
+        <xsl:choose><xsl:when test="preceding-sibling::tei:note">
+            <xsl:text>&#187;</xsl:text>
+            <xsl:apply-templates/>
+            <xsl:text>&#171;</xsl:text>  
+        </xsl:when>
+            <xsl:when test="@type='motto'">
+                <xsl:apply-templates/></xsl:when>
+            <xsl:otherwise> <xsl:text>&#187;</xsl:text>
+                <xsl:apply-templates/>
+                <xsl:text>&#171;</xsl:text></xsl:otherwise></xsl:choose>  
+    </xsl:template>
+    
+   <!-- auskommentiert LK  
+    <xsl:template match="tei:quote">
+        <xsl:choose>
+            <xsl:when test="preceding-sibling::tei:note">
+           <xsl:choose><xsl:when test="preceding-sibling::tei:note">
+            <xsl:text> &#187;</xsl:text>
+            <xsl:apply-templates/>
+            <xsl:text>&#171;</xsl:text> 
+        </xsl:when>
+            <xsl:when test="@type='motto'">
+                <xsl:apply-templates/> 
+            </xsl:when>
+            <xsl:otherwise> <xsl:text>&#187;</xsl:text>
+                <xsl:apply-templates/>
+                <xsl:text>&#171;</xsl:text></xsl:otherwise></xsl:choose>  
+                </xsl:template> -->
+    
+<xsl:template match="tei:emph">
+    <xsl:apply-templates></xsl:apply-templates>
+</xsl:template>
+
+    <xsl:template match="tei:term">
+        <xsl:choose>
+            <xsl:when test="@type='dh'">
+                <span style="color:#035151"><i><xsl:apply-templates></xsl:apply-templates></i></span>
+            </xsl:when>
+            <!-- ergänzt 13.11.2020 HFS -->         
+            
+            <xsl:when test="@type='figure'">
+                <span style="color:#585858"><xsl:apply-templates></xsl:apply-templates></span>
+            </xsl:when>
+            <xsl:when test="@type='name'">
+                <span style="letter-spacing:0.1em"><xsl:apply-templates></xsl:apply-templates></span>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:apply-templates></xsl:apply-templates>
+            </xsl:otherwise>
+        </xsl:choose>
+        
+    </xsl:template>
+
+    <xsl:template match="tei:hi |  tei:rs/tei:hi">
+        <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+        <xsl:choose>
+            <xsl:when test="@rend='latin'">
+                <span style="font-family:junicode"><xsl:apply-templates></xsl:apply-templates></span>
+            </xsl:when>
+            <xsl:when test="@rend = 'italics' or @rend = 'italic'">
+                <i>
+                    <xsl:apply-templates/>
+                </i>
+            </xsl:when>
+            <xsl:when test="@rend = 'bold'">
+                <b>
+                    <xsl:apply-templates/>
+                </b>
+            </xsl:when>
+            <xsl:when test="@rend = 'underline'">
+                <u>
+                    <xsl:apply-templates/>
+                </u>
+            </xsl:when>
+            <xsl:when test="@rend = 'sub'">
+                <sub>
+                    <xsl:apply-templates/>
+                </sub>
+            </xsl:when>
+            <xsl:when test="@rend = 'super'">
+                <sup>
+                    <xsl:apply-templates/>
+                </sup>
+            </xsl:when>
+            <xsl:when test="@rend = 'sup'">
+                <sup>
+                    <xsl:apply-templates/>
+                </sup>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:apply-templates/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:p | tei:seg | tei:lg">
+        <xsl:choose>
+            <xsl:when test="./tei:quote[@type = 'grosszitat']">
+                <xsl:element name="p">
+                    <span class="grosszitat">
+                        <xsl:apply-templates/>
+                    </span>
+                </xsl:element>
+            </xsl:when>
+            
+            <xsl:when test="parent::tei:div[@type = 'chapter'] | parent::tei:div[@type = 'subchapter']">
+                <xsl:element name="p">                    
+                    <xsl:attribute name="id"><xsl:text>pid</xsl:text><xsl:number count="tei:p" format="1"
+                        from="tei:div[@type = 'chapter'][1]" level="any"/></xsl:attribute>
+                    
+                    <span style="float: right; padding: .2em; color: #999; border: 1px solid #ccc; background-color: #eee; margin-right: -80px;">
+                        <xsl:text>[</xsl:text><xsl:element name="a">
+                            <xsl:attribute name="href"><xsl:text>#pid</xsl:text>
+                                <xsl:number count="tei:p" format="1"
+                                    from="tei:div[@type = 'chapter'][1]" level="any"/></xsl:attribute>
+                            <xsl:number count="tei:p" format="1"
+                                from="tei:div[@type = 'chapter'][1]" level="any"/>
+                        </xsl:element>
+                        <xsl:text>]</xsl:text>
+                    </span>
+                    <xsl:if test="@rendition='motto'">
+                        <span style="text-align: right; margin-left: 20%; margin-top: 5px; font-style: italic; hyphens: auto;
+                            -moz-text-align-last: right; text-align-last: right;">                    
+                            <xsl:apply-templates select="tei:p[@rendition='motto']"/>
+                        </span>
+                    </xsl:if>   
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="@rendition='motto'">
+                <xsl:element name="p">
+                    <span class="motto">
+                <xsl:text>&#187;</xsl:text>
+                <xsl:apply-templates/>
+                <xsl:text>&#171;</xsl:text>
+                    </span>
+                </xsl:element>
+            </xsl:when>
+            <!--<xsl:when test="./tei:quote[@type = 'motto']">
+                <xsl:element name="p">
+                    <span class="motto">
+                        <xsl:apply-templates/>
+                    </span>
+                </xsl:element>
+            </xsl:when>-->
+            <xsl:when test="ancestor::tei:div[@type='abstract']">
+                <xsl:element name="p">
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:when>
+            <!--<xsl:otherwise>
+                <xsl:element name="p">
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:otherwise>-->
+        </xsl:choose>
+
+    </xsl:template>
+
+
+    <xsl:template match="tei:bibl/tei:ref">
+        <a>
+            <xsl:attribute name="href">
+                <xsl:value-of select="@target"/>
+            </xsl:attribute>
+            <xsl:attribute name="target">_blank</xsl:attribute>
+            <xsl:apply-templates/>
+        </a>
+
+    </xsl:template>
+
+
+    <xsl:template match="tei:bibl/tei:title">
+       <xsl:choose>
+           <xsl:when test="@type='desc'">
+               <i><xsl:apply-templates></xsl:apply-templates></i>
+           </xsl:when>
+       </xsl:choose>
+    </xsl:template>
+    
+    
+
+    <xsl:template match="tei:graphic">
+
+        <div class="medium">
+            <div class="field-item even" rel="og:image rdfs:seeAlso" resource="../medium1">
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="$img"/>
+                        <xsl:value-of select="substring-after(@url, 'medien/')"/>
+                        <!-- <xsl:text>.../medien1/</xsl:text><xsl:value-of select="substring-after(@url, '.../medien')"/> -->
+                    </xsl:attribute>
+                    <xsl:attribute name="title">
+                        <xsl:value-of select="normalize-space(tei:desc)"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="rel">
+                        <xsl:text>gallery-node</xsl:text>
+                    </xsl:attribute>
+                    <xsl:attribute name="class">
+                        <xsl:text>colorbox</xsl:text>
+                    </xsl:attribute>
+                    <img style="max-height:450px!important" class="artikel">
+              
+                        <xsl:attribute name="alt">
+                            <xsl:value-of select="tei:desc"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="src">
+                            <xsl:value-of select="$img2"/>
+                            <xsl:value-of select="substring-after(@url, 'medien/')"/>
+                        </xsl:attribute>
+                        <xsl:text/>
+                    </img>
+                </a>
+            </div>
+            <div class="img_desc">
+                <xsl:apply-templates select="tei:desc"/>
+            </div>
+        </div>
+    </xsl:template>
+
+
+    <xsl:template match="tei:media">
+        <xsl:choose>
+            <xsl:when test="@type = 'svg'">
+                <div class="medium">
+                    <object width="900" height="450">
+                        <!--  <xsl:attribute name="alt">
+                            <xsl:value-of select="tei:desc"/>
+                        </xsl:attribute>-->
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="data">
+                            <xsl:value-of select="$img"/>
+                            <xsl:value-of select="substring-after(@url, 'medien/')"/>
+                        </xsl:attribute>
+                        <xsl:text/>
+                        <xsl:attribute name="type">image/svg+xml</xsl:attribute>
+                    </object>
+                </div>
+                <div class="img_desc">
+                    <xsl:apply-templates select="tei:desc"/>
+                </div>
+            </xsl:when>
+        </xsl:choose>
+<xsl:choose>
+    <xsl:when test="@type='video'">
+        <div class="medium">
+        <xsl:element name="iframe">
+            <xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute>
+            <xsl:attribute name="src"><xsl:value-of select="@url"/></xsl:attribute>
+            <xsl:attribute name="width">560</xsl:attribute>
+            <xsl:attribute name="height">315</xsl:attribute>
+            <xsl:attribute name="frameborder">0</xsl:attribute>
+            <xsl:attribute name="height">315</xsl:attribute>
+            <xsl:attribute name="allow">autoplay; encrypted-media</xsl:attribute>
+            <xsl:attribute name="allowfullscreen"></xsl:attribute>
+        </xsl:element>
+        </div>
+            <div class="img_desc">            
+                <xsl:apply-templates select="tei:desc"></xsl:apply-templates>
+            </div>       
+    </xsl:when>
+</xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:ref[parent::tei:desc]">
+        <xsl:choose>
+            <xsl:when test="@type = 'extern'">
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:otherwise>
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+
+    <xsl:template match="tei:code">
+        <xsl:choose>
+            <xsl:when test="@rend='indent1'">
+                <xsl:element name="span">
+                    <xsl:attribute name="style">margin-left: 3%; background-color:#fafafa; color: black;</xsl:attribute>
+                    <xsl:attribute name="class">code</xsl:attribute>
+                    <xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute>
+                    <xsl:apply-templates/>
+                </xsl:element>  
+ </xsl:when>
+            <xsl:when test="@rend='indent2'">
+                <xsl:element name="span">
+                    <xsl:attribute name="style">margin-left: 5%; background-color:#fafafa; color: black;</xsl:attribute>
+                    <xsl:attribute name="class">code</xsl:attribute>
+                    <xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute>
+                    <xsl:apply-templates/>
+                </xsl:element>  
+            </xsl:when>
+            <xsl:otherwise>
+               <xsl:element name="span">
+                <xsl:attribute name="class">code</xsl:attribute>
+                   <xsl:attribute name="style">background-color:#fafafa; color: black;</xsl:attribute>
+                <xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute>
+                <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+<!-- altes Template - auskommentiert MB 15.11.21 -->
+<!--<xsl:template match="tei:table">
+    <hr style="width:50%; margin-left:0px;"/>
+    <table class="article">
+     <xsl:for-each select="tei:row">
+         <tr><xsl:apply-templates></xsl:apply-templates></tr>
+     </xsl:for-each>
+    </table>
+    <hr style="width:50%; margin-left:0px;"/>
+    <xsl:if test="tei:trailer">
+            <div class="img_desc"><xsl:apply-templates select="tei:trailer"></xsl:apply-templates></div>    
+    </xsl:if>
+    
+</xsl:template>-->
+    
+    <!-- Template aus Artikelscript übernommen am 15.11.21 MB -->
+    <xsl:template match="tei:table">
+        <!--<hr class="one"/>-->   
+        <div class="medium">
+        <xsl:element name="table"><xsl:attribute name="style">border: 1px; rules: all; border-style: solid; border-color: #696969; font-size: 12px; line-height: 1.5;</xsl:attribute>
+            <xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute>
+            <xsl:if test="tei:head">
+                <xsl:apply-templates select="tei:head[1]"></xsl:apply-templates>  
+                <xsl:apply-templates select="tei:head[2]"></xsl:apply-templates>
+                <xsl:apply-templates select="tei:head[3]"></xsl:apply-templates>  
+                <xsl:apply-templates select="tei:head[4]"></xsl:apply-templates>  
+                <xsl:apply-templates select="tei:head[5]"></xsl:apply-templates>  
+            </xsl:if>
+            <xsl:for-each select="tei:row">
+                <xsl:element name="tr"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute>
+                    <xsl:apply-templates></xsl:apply-templates></xsl:element>
+            </xsl:for-each>
+        </xsl:element>
+        <!--<hr class="one"/>
+        <xsl:element name="br"/>-->
+        <xsl:if test="tei:trailer[1]">
+            <span class="img_desc">
+                <xsl:attribute name="id"><xsl:value-of select="tei:trailer[1]/@xml:id"/></xsl:attribute>
+                <xsl:apply-templates select="tei:trailer[1]"></xsl:apply-templates></span>
+        </xsl:if> 
+        </div>
+    </xsl:template>
+
+<xsl:template match="tei:lb">
+    <xsl:choose>
+        <xsl:when test="@n">
+            <br/><span style="font-size:11px; margin-right:1%"><xsl:value-of select="@n"/><xsl:text>|| </xsl:text></span>
+          
+        </xsl:when>
+        <xsl:otherwise><br/></xsl:otherwise>
+    </xsl:choose>
+</xsl:template>
+
+<xsl:template match="tei:cell">
+   <xsl:choose>
+       <xsl:when test=" ancestor::tei:row[@label='label']">
+           <th><xsl:apply-templates/></th>
+       </xsl:when>
+       <xsl:otherwise>
+           <td style="padding-top: 10px; padding-bottom: 10px; padding-right: 10px; padding-left: 5px; border: 1px; rules: all; border-style: solid; border-color: #696969"><xsl:apply-templates></xsl:apply-templates></td>
+       </xsl:otherwise>
+   </xsl:choose>
+</xsl:template>
+
+<xsl:template match="tei:desc[@type = 'graphic']">
+         <ul class="abbildung">
+            <xsl:for-each select=".">
+                <xsl:element name="li">
+                    <xsl:attribute name="id">
+                        <xsl:value-of select="@xml:id"/>
+                    </xsl:attribute>
+                    <a>
+                        <xsl:attribute name="href">
+                            <xsl:value-of select="tei:ref[@type = 'graphic']/@target"/>
+                        </xsl:attribute>
+                        <xsl:text>Abb. </xsl:text><xsl:number count="tei:desc[@type='graphic']"></xsl:number>
+                    </a><xsl:text>: </xsl:text>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:for-each>
+        </ul>
+    </xsl:template>
+    
+    <xsl:template match="tei:desc[@type = 'table']">
+        
+        <ul class="abbildung">
+            <xsl:for-each select=".">
+                <xsl:element name="li">
+                    <xsl:attribute name="id">
+                        <xsl:value-of select="@xml:id"/>
+                    </xsl:attribute>
+                    <a>
+                        <xsl:attribute name="href">
+                            <xsl:value-of select="tei:ref[@type = 'intern']/@target"/>
+                        </xsl:attribute>
+                        <xsl:text>Tab. </xsl:text><xsl:number count="tei:desc[@type='table']"></xsl:number>
+                    </a>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:for-each>
+        </ul>
+    </xsl:template>
+
+
+
+    <!--<xsl:template match="tei:div[@type = 'chapter'] | tei:div[@type = 'subchapter']">
+        <xsl:element name="div">
+            <xsl:attribute name="id">
+                <xsl:value-of select="@type"/>
+            </xsl:attribute>
+            <xsl:apply-templates/>
+        </xsl:element>
+    </xsl:template>-->
+</xsl:stylesheet>
diff --git a/skripte/2022/journal_sb_html_sb05_eng.xsl b/skripte/2022/journal_sb_html_sb05_eng.xsl
new file mode 100644
index 0000000000000000000000000000000000000000..4e62b7b811e5005e7bc142c27151094a29a78c4e
--- /dev/null
+++ b/skripte/2022/journal_sb_html_sb05_eng.xsl
@@ -0,0 +1,1583 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- Transformationsskript für die Beiträge in der Zeitschrift für digitale Geisteswissenschaften,
+    Ersteller: Timo Steyer, steyer@hab.de
+    Herzog August Bibliothek Wolfenbüttel
+    Forschungsverbund MWW
+    Das Skript steht unter einer CC BY-SA 3.0 Lizenz-->
+<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:mets="http://www.loc.gov/METS/"
+    xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:exist="http://exist.sourceforge.net/NS/exist"
+    xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common"
+    extension-element-prefixes="date exsl" exclude-result-prefixes="tei mets xlink exist"
+    version="2.0">
+
+
+    <xsl:output encoding="UTF-8" indent="yes" method="html" doctype-public="-//W3C//DTD HTML 4.01//EN"
+        doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>
+
+
+    <xsl:strip-space elements="*"/>
+    <xsl:param name="dir"/>
+    <xsl:param name="q"/>
+    <xsl:param name="qtype"/>
+    <xsl:param name="distype"/>
+    <xsl:param name="pvID"/>
+    <xsl:param name="footerXML"/>
+    <xsl:param name="footerXSL"/>
+    <xsl:param name="view"/>
+    <xsl:variable name="smallcase" select="'&#173;'"/>
+    <xsl:variable name="uppercase" select="'-'"/>
+    <xsl:variable name="gbv">
+        <xsl:text>http://gso.gbv.de/DB=2.1/PPN?PPN=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="opac">
+        <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/PPN?PPN=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="gnd">
+        <xsl:text>http://d-nb.info/gnd/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="vd16">
+        <xsl:text>http://gateway-bayern.de/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="v1"><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level='a']"></xsl:value-of></xsl:variable>
+    <xsl:variable name="tadirah">
+        <xsl:text>http://tadirah.dariah.eu/vocab/index.php?tema=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="img">
+        <xsl:text>http://www.zfdg.de/sites/default/files/medien/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="img2">
+        <xsl:text>http://www.zfdg.de/sites/default/files/styles/medium_in_artikel/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="doi">
+        <xsl:text>http://dx.doi.org/</xsl:text>
+    </xsl:variable>
+  
+
+    <xsl:template match="/">
+
+
+
+
+
+
+        <html>
+            <head>
+                <meta http-equiv="Content-Type" content="text/html;"/>
+                <title>ZfdG Beitrag</title>
+
+
+                <link rel="stylesheet" type="text/css" href="style.css"/>
+
+                <!--  Steyer: Einbinden des Junicode-Schriftsatzes  -->
+                <style>
+                    @font-face { font-family:'junicode';
+                    <!--
+ Herunterladen eines gleichnamigen lokalen Schriftsatzes verhindern 
+-->
+                    src: local ('Ø'); src: local ('Junicode');
+                    <!--  Einbinden  -->
+                    src: url('http://diglib.hab.de/rules/fonts/Junicode.woff') format('woff');
+                </style>
+                <!--  Ende Ergänzung  -->
+
+            </head>
+
+            <!-- Bedingungen und Regeln: Inhaltsverzeichnis an Abstracts gebunden -->
+  
+            <body>
+                <!--  Dokumentkopf -->
+                
+                <!-- Titel -->
+                <div id="caption">
+                    <xsl:element name="span">
+                        <xsl:attribute name="class">Z3988</xsl:attribute>
+                        <xsl:attribute name="title">
+                            <xsl:text>url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rfr_id=info%3Asid%2Fzotero.org%3A2&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=bookitem&amp;rft.atitle=</xsl:text>
+                            <xsl:value-of select="replace($v1, ' ', '%20')"></xsl:value-of>
+                            <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name">
+                                <xsl:text>&amp;rft.au=</xsl:text>
+                                <xsl:value-of select="tei:forename"></xsl:value-of>
+                                <xsl:text>%20</xsl:text>
+                                <xsl:value-of select="tei:surname"></xsl:value-of>
+                            </xsl:for-each>  
+                            <xsl:text>&amp;rft.series=Zeitschrift%20f%C3%BCr%20digitale%20Geisteswissenschaften</xsl:text>
+                            <xsl:text>&amp;rft.date=</xsl:text>
+                            <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date/@when"></xsl:value-of>
+                            <xsl:text>&amp;rft_id=http://dx.doi.org/</xsl:text>
+                            <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"></xsl:value-of>
+                            <xsl:text>&amp;rft.language=</xsl:text><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:langUsage/tei:language[1]/@ident"></xsl:value-of>
+                            <xsl:text>&amp;rft.rights=CC BY-SA 4.0</xsl:text>
+                        </xsl:attribute>
+                    </xsl:element>
+                    <div>
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                <xsl:for-each
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName">
+                                    <div style="margin: 1em 0 1em 0;">
+                                        <xsl:apply-templates select="tei:name/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename[2]">
+                                            <xsl:apply-templates select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename[2]"/>
+                                        <xsl:text> </xsl:text>
+                                        </xsl:if>
+                                        <xsl:apply-templates select="tei:name/tei:surname"/>
+                                        <xsl:text>  </xsl:text>
+                                        <xsl:element name="a">
+                                            <xsl:attribute name="href">
+                                                <xsl:text>javascript:switchlayer('author</xsl:text>
+                                                <xsl:number
+                                                    count="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt"/>
+                                                <xsl:text>');</xsl:text>
+                                            </xsl:attribute>
+                                            
+                                            <img style="margin-left: 1%"
+                                                src="http://www.zfdg.de/sites/all/themes/fvmww/images/arrow-down.png"
+                                                alt="Autoreninformationen"/>
+                                        </xsl:element>
+                                    </div>
+                                    <xsl:element name="div">
+                                        <xsl:attribute name="style">
+                                            <xsl:text>display:none; width:100%; background-color: #fafafa;</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:attribute name="id">
+                                            <xsl:text>author</xsl:text>
+                                            <xsl:number
+                                                count="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:text> Kontakt: </xsl:text>
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:text>mailto:</xsl:text>
+                                                <xsl:value-of select="tei:email"/>
+                                            </xsl:attribute>
+                                            
+                                            <xsl:apply-templates select="tei:email"/>
+                                        </a>
+                                        <br/>
+                                        <xsl:text>Institution: </xsl:text>
+                                        <xsl:apply-templates select=" following::tei:orgName[1]"/>
+                                        <xsl:text> </xsl:text>
+                                        <br/>
+                                        <xsl:if test="tei:idno[@type = 'gnd']">
+                                            <xsl:text>GND: </xsl:text>
+                                            <a>
+                                                <xsl:attribute name="href">
+                                                    <xsl:text> http://d-nb.info/gnd/</xsl:text>
+                                                    <xsl:value-of select="tei:idno[@type = 'gnd']"/>
+                                                </xsl:attribute>
+                                                <xsl:attribute name="target"
+                                                    ><xsltext>_blank</xsltext>:</xsl:attribute>
+                                                <xsl:value-of select="tei:idno[@type = 'gnd']"/>
+                                            </a>
+                                            <br/>
+                                        </xsl:if>
+                                        <xsl:if test="tei:idno[@type = 'orcid']">
+                                            <xsl:text>ORCID: </xsl:text>
+                                            <a>
+                                                <xsl:attribute name="href"><xsl:text>https://orcid.org/</xsl:text><xsl:value-of select="tei:idno[@type = 'orcid']"/></xsl:attribute>
+                                                <xsl:attribute name="target"
+                                                    ><xsltext>_blank</xsltext>:</xsl:attribute>
+                                                <xsl:value-of select="tei:idno[@type = 'orcid']"/>
+                                            </a>
+                                            <br/>
+                                        </xsl:if>
+                                        <!-- CREDIT Rollen -->
+                                        <xsl:if test="preceding-sibling::tei:idno[@type = 'credit']">
+                                            <xsl:for-each select="preceding-sibling::tei:idno[@type='credit']">
+                                                <xsl:text>Credit: </xsl:text>
+                                                <a>
+                                                    <xsl:attribute name="href">
+                                                        <xsl:value-of select=".[@type = 'credit']"/></xsl:attribute>
+                                                    <xsl:attribute name="target">
+                                                        <xsltext>_blank</xsltext>
+                                                    </xsl:attribute>
+                                                    <xsl:value-of select=".[@type = 'credit']"/>
+                                                </a>
+                                                <br/>
+                                            </xsl:for-each>
+                                        </xsl:if>
+                                    </xsl:element>
+                                </xsl:for-each>
+                            </xsl:when>
+                        </xsl:choose>
+                        
+                    </div>
+               
+                    <div id="info1">
+                        <hr class="one"/>
+                        <!--  <xsl:text>DOI: </xsl:text><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno[@type='doi']"/><br/> -->
+
+
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno/@type = 'doi'">
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>DOI: </xsl:text>
+                                    </span>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:value-of select="$doi"/>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                        />
+                                    </a>
+                                </p>
+                            </xsl:when>
+                            <xsl:otherwise>
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>DOI: </xsl:text>
+                                    </span>
+                                    <xsl:text>In Kürze</xsl:text>
+                                </p>
+                            </xsl:otherwise>
+                        </xsl:choose>
+
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Nachweis im OPAC der Herzog August Bibliothek: </xsl:text>
+                            </span>
+                            <xsl:choose>
+                                <xsl:when
+                                    test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']">
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/XMLPRS=N/PPN?PPN=</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:attribute name="target">
+                                            <xsl:text>_blank</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']"
+                                        />
+                                    </a>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:text>In Kürze</xsl:text>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </p>
+
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Erstveröffentlichung: </xsl:text>
+                            </span>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date"/>
+                               
+                        </p>
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Lizenz:</xsl:text>
+                            </span>
+                            <xsl:text> Sofern nicht anders angegeben </xsl:text>
+                            <xsl:choose>
+                                <xsl:when
+                                    test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:availability[1]/tei:licence[@target = 'http://creativecommons.org/licenses/by/4.0/']">
+
+
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>http://creativecommons.org/licenses/by-sa/4.0/</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:attribute name="rel">
+                                            <xsl:text>license</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:attribute name="target">
+                                            <xsl:text>_blank</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:element name="img">
+                                            <xsl:attribute name="alt">
+                                                <xsl:text>Creative Commons Lizenzvertrag</xsl:text>
+                                            </xsl:attribute>
+                                            <xsl:attribute name="src">
+                                                <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text>
+                                            </xsl:attribute>
+                                        </xsl:element>
+                                        <br/>
+                                    </a>
+
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:availability[1]/tei:licence"
+                                    />
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </p>
+                    </div>
+                    <div id="info2">
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Medienlizenzen: </xsl:text>
+                            </span>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl/tei:p[3]"
+                            />
+                        </p>
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Letzte Überprüfung aller Verweise: </xsl:text>
+                            </span>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl/tei:p[4]/tei:date"
+                            />
+                        </p>
+
+
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']">
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>GND-Verschlagwortung: </xsl:text>
+                                    </span>
+                                    <xsl:for-each
+                                        select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']/tei:term">
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:value-of select="$gnd"/>
+                                                <xsl:value-of select="./tei:ref/@target"/>
+                                            </xsl:attribute>
+                                            <xsl:attribute name="target">
+                                                <xsl:text>_blank</xsl:text>
+                                            </xsl:attribute>
+                                            <xsl:value-of select="."/>
+                                        </a>
+                                        <xsl:text> | </xsl:text>
+                                    </xsl:for-each>
+                                </p>
+                            </xsl:when>
+                        </xsl:choose>
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']">
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>TaDiRAH-Verschlagwortung: </xsl:text>
+                                    </span>
+                                    <xsl:for-each
+                                        select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']/tei:term">
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:value-of select="$tadirah"/>
+                                                <xsl:value-of select="./tei:ref/@target"/>
+                                            </xsl:attribute>
+                                            <xsl:attribute name="target">
+                                                <xsl:text>_blank</xsl:text>
+                                            </xsl:attribute>
+                                            <xsl:value-of select="."/>
+                                        </a>
+                                        <xsl:text> | </xsl:text>
+                                    </xsl:for-each>
+                                </p>
+                            </xsl:when>
+                        </xsl:choose>
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Empfohlene Zitierweise: </xsl:text>
+                            </span>
+                            <xsl:choose>
+                                <xsl:when
+                                    test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno/@type = 'doi'">
+                                    <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                    <xsl:text> </xsl:text>
+                                    <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"/>
+
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    
+                                    
+                                    
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    
+                                    
+                                    
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+
+                                    <xsl:text>: </xsl:text>
+                                   <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title"/>
+                                    <xsl:text>. *** muss angepasst werden *** In: Die Modellierung des Zweifels – Schlüsselideen und -konzepte zur graphbasierten Modellierung von Unsicherheiten. Hg. von Andreas Kuczera / Thorsten Wübbena / Thomas Kollatz. Wolfenbüttel 2019. (= Zeitschrift für digitale Geisteswissenschaften / Sonderbände, 4)</xsl:text>
+                                    <xsl:text> </xsl:text>
+
+                                    <xsl:text> text/html Format.</xsl:text>
+                                    <!-- <xsl:text>Eingesehen am: </xsl:text>
+                                    <xsl:value-of  select="$now"/>.   -->
+                                    <xsl:text> DOI: </xsl:text>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:value-of select="$doi"/>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                        />
+                                    </a>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:text>in Kürze verfügbar</xsl:text>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </p>
+
+                        <hr class="one"/>
+                    </div>
+
+                </div>
+
+
+
+                <div class="content">
+                    <!-- Haupttext -->
+                    <xsl:apply-templates
+                        select="tei:TEI/tei:text//tei:div[@type = 'chapter'] | tei:TEI/tei:text//tei:div[@type = 'abstract']"
+                    />
+                </div>
+
+
+         
+
+                <!-- Fussnotenbereich  -->
+
+                <div id="fussnoten">
+                    <xsl:if test="tei:TEI/tei:text/tei:body//tei:note[@type = 'footnote']">
+                        <hr/>
+
+                    </xsl:if>
+
+
+                    <a name="footnotes"/>
+                    <xsl:choose>
+                        <xsl:when test="tei:TEI/tei:text/tei:body/tei:div[@type = 'footnotes']">
+                            <!--  Wenn es einen Fussnotenbereich gibt -->
+                            <xsl:apply-templates
+                                select="tei:TEI/tei:text/tei:body/tei:div[@type = 'footnotes']"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <!--  andernfalls notes auswerten -->
+                            <div class="footnote">
+                                <h2>Footnotes</h2>
+                                <ul class="footnote">
+                                    <xsl:for-each
+                                        select="tei:TEI/tei:text/tei:body//tei:note[@type = 'footnote']">
+
+                                        <li class="footnote">
+                                            <div class="footnote2">
+                                                <xsl:attribute name="id">
+                                                  <xsl:text>fn</xsl:text>
+                                                  <xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"/>
+                                                </xsl:attribute>
+                                                <xsl:attribute name="href">
+                                                  <xsl:text>#fna</xsl:text><xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"/>
+                                                </xsl:attribute>[<a><xsl:attribute name="href">
+                                                  <xsl:text>#fna</xsl:text><xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"
+                                                  /></xsl:attribute><xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"/></a>]</div>
+                                            <div class="footnote3">
+                                                <xsl:apply-templates/>
+                                            </div>
+                                        </li>
+                                        <br/>
+                                    </xsl:for-each>
+                                </ul>
+                            </div>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </div>
+                <!-- Bibliographie -->
+                <div class="bibliography">
+                    <hr/>
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'bibliography']"
+                    />
+                </div>
+                <!-- Abbildungsnachweis -->
+                <div class="abbildungsnachweis">
+                    <hr/>
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'abbildungsnachweis']"
+                    />
+                </div>
+                <!-- Glossar -->
+                <xsl:choose>
+                    <xsl:when test="//tei:TEI/tei:text[1]/tei:body[1]/tei:div[1]/tei:div[@type='glossar']">
+                <div class="glossar">
+                    <hr/>
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'glossar']"/>
+                </div>
+                    </xsl:when>
+                </xsl:choose>
+                <!-- Ende main -->
+            </body>
+        </html>
+    </xsl:template>
+
+    <xsl:template match="tei:body | tei:front">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!--header-->
+    <!-- editor, contributer etc. -->
+    <xsl:template match="tei:respStmt">
+        <xsl:if test="position() != 1">
+            <xsl:text>,</xsl:text>
+        </xsl:if>
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="tei:resp"/>
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="tei:name"/>
+    </xsl:template>
+
+    <!-- Front -->
+
+    <xsl:template match="tei:titlePage">
+        <p class="content">
+            <xsl:apply-templates/>
+        </p>
+    </xsl:template>
+
+    <xsl:template match="tei:docTitle">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+
+    <xsl:template match="tei:docDate">
+        <p class="content">
+            <xsl:apply-templates/>
+        </p>
+    </xsl:template>
+
+    <xsl:template match="tei:docAuthor">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+
+    <xsl:template match="tei:titlePart">
+        <p class="content">
+            <xsl:apply-templates/>
+        </p>
+    </xsl:template>
+
+
+    <!--body-->
+    <!-- main distribution
+    <xsl:template match="tei:div[not(@type='footnotes')] | tei:div1[not(@type='footnotes')] | tei:div2[not(@type='footnotes')] | tei:div3[not(@type='footnotes')]">
+        <a>
+            <xsl:attribute name="name">
+                <xsl:text>div</xsl:text>
+                <xsl:number level="any"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+        <xsl:if test="@xml:id[starts-with(.,'org') or starts-with(.,'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+    
+            <xsl:if test="@type = 'abstract'">
+                <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>abstract</xsl:text></xsl:attribute>
+            
+            <xsl:apply-templates/>
+            </xsl:element>
+            </xsl:if>
+            <xsl:if test="@type ='chapter'">
+                <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>chapter</xsl:text></xsl:attribute>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:if>
+        <xsl:if test="@type ='subchapter'">
+            <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>subchapter</xsl:text></xsl:attribute>
+                <xsl:apply-templates/>t
+            </xsl:element>
+        </xsl:if>
+        <xsl:if test="@type ='biblography'">
+            <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>bibliography</xsl:text></xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:if>
+    </xsl:template>
+-->
+    <!--    Ueberschriften-->
+
+    <xsl:template match="h">
+
+        <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+        <a>
+            <xsl:attribute name="name">
+                <xsl:text>hd</xsl:text>
+                <xsl:number level="any"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+        <h2>
+            <xsl:apply-templates/>
+        </h2>
+    </xsl:template>
+
+
+    <!-- xsl:mode ansehen, p als type grosszitat? -->
+
+    <!--    Links -->
+    <xsl:template match="tei:ref">
+        <xsl:choose>
+            <xsl:when test="@type = 'footnote'">
+                <a>
+                    <xsl:attribute name="name">
+                        <xsl:text>fna</xsl:text>
+                        <xsl:value-of select="."/>
+                    </xsl:attribute>
+                    <a>
+                        <xsl:attribute name="href">
+                            <xsl:value-of select="@target"/>
+                        </xsl:attribute>
+                        <xsl:value-of select="."/>
+                    </a>
+                </a>
+            </xsl:when>
+
+            <xsl:when test="@type = 'intern'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>                       
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_self</xsl:text>                    
+                    </xsl:attribute>
+                             <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'verweis'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="title">
+                           <xsl:value-of select="."/>
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'glossar'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'extern'">
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'graphic' and not(parent::tei:desc)">
+
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <!--      <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute> -->
+                    <span class="medium">
+                        <xsl:apply-templates/>
+                    </span>
+                </a>
+            </xsl:when>
+
+            <xsl:when test="@type = 'bibliography'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:otherwise>
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:ptr">
+        <xsl:apply-templates/>
+        <xsl:choose>
+            <xsl:when test="@type = 'google_books'"> [<a>
+                    <xsl:attribute name="href">
+                        <xsl:text>javascript:show_annotation_html('</xsl:text><xsl:value-of
+                            select="$dir"/><xsl:text>','</xsl:text><xsl:value-of select="@target"
+                        /><xsl:text>',400,600)</xsl:text>
+                    </xsl:attribute>
+                    <xsl:text>Google Books</xsl:text></a>] </xsl:when>
+            <xsl:when test="starts-with(@target, 'http://')"> [<a>
+                    <xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute>
+                    <xsl:attribute name="target">_blank</xsl:attribute>
+                    <xsl:text>Link</xsl:text>
+                </a>] </xsl:when>
+            <xsl:when test="@type = 'opac'"> [<a href="{normalize-space(concat($opac,@cRef))}"
+                    target="_blank">Nachweis im OPAC</a>] </xsl:when>
+            <xsl:when test="@type = 'vd16'"> [<a href="{normalize-space(concat($vd16,@cRef))}"
+                target="_blank">Nachweis im VD16</a>] </xsl:when>
+            <xsl:when test="@type = 'varia'"> [<a>
+                    <xsl:attribute name="href"><xsl:value-of select="@cRef"/>
+                    </xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>
+                    <xsl:text>Nachweis</xsl:text></a>] </xsl:when>
+            <xsl:when test="@type = 'gbv'"> [<a href="{normalize-space(concat($gbv,@cRef))}"
+                    target="_blank">Nachweis im GVK</a>] </xsl:when>
+        </xsl:choose>
+ 
+        <xsl:choose>
+            <xsl:when test="@subtype = 'google_books'"> [<a>
+                <xsl:attribute name="href">
+                    <xsl:text>javascript:show_annotation_html('</xsl:text><xsl:value-of
+                        select="$dir"/><xsl:text>','</xsl:text><xsl:value-of select="@target"
+                        /><xsl:text>',400,600)</xsl:text>
+                </xsl:attribute>
+                <xsl:text>Google Books</xsl:text></a>] </xsl:when>
+            <xsl:when test="starts-with(@target, 'http://')"> [<a>
+                <xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute>
+                <xsl:attribute name="target">_blank</xsl:attribute>
+                <xsl:text>Link</xsl:text>
+            </a>] </xsl:when>
+            <xsl:when test="@subtype = 'opac'"> [<a href="{normalize-space(concat($opac,@cRef))}"
+                target="_blank">Nachweis im OPAC</a>] </xsl:when>
+            <xsl:when test="@subtype = 'varia'"> [<a>
+                <xsl:attribute name="href"><xsl:value-of select="@cRef"/>
+                </xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>
+                <xsl:text>Nachweis</xsl:text></a>] </xsl:when>
+            <xsl:when test="@subtype = 'gbv'"> [<a href="{normalize-space(concat($gbv,@cRef))}"
+                target="_blank">Nachweis im GVK</a>] </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+    
+    
+    
+    
+    
+
+    <xsl:template match="tei:list">
+        <xsl:choose>
+            <xsl:when test="@type = 'unordered'">
+                <xsl:element name="ul">
+                    <xsl:attribute name="class">ul_article</xsl:attribute>
+                    <xsl:for-each select="tei:item">
+                        <xsl:element name="li"><xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute>
+                            <xsl:apply-templates/>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="@type = 'ordered'">
+                <xsl:element name="ol">
+                    <xsl:attribute name="class">ol_article</xsl:attribute>
+                    <xsl:for-each select="tei:item">
+                        <xsl:element name="li">
+                            <xsl:apply-templates/>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="@type = 'gloss'">
+                <xsl:element name="table">
+                    <xsl:for-each select="tei:label">
+                        <xsl:element name="tr">
+                            <xsl:element name="td">
+                                <xsl:attribute name="id">
+                                    <xsl:value-of select="@xml:id"/>
+                                </xsl:attribute>
+                                <xsl:apply-templates select="tei:term"/>
+                                <br/>
+                                <br/>
+                            </xsl:element>
+
+                            <xsl:element name="td">
+                                <xsl:apply-templates
+                                    select="following-sibling::tei:item[position() = 1]/tei:gloss"/>
+                                <a>
+
+                                    <xsl:attribute name="href">
+                                        <xsl:text>#g</xsl:text>
+                                        <xsl:value-of select="@xml:id"/>
+                                    </xsl:attribute>
+                                    <xsl:text> [Zurück zum Text]</xsl:text>
+                                </a>
+                                <br/>
+                                <br/>
+                            </xsl:element>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:element name="ul">
+                    <xsl:for-each select="tei:item">
+                        <xsl:element name="li">
+                            <xsl:apply-templates/>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+
+
+    <xsl:template match="tei:bibl[parent::tei:listBibl]">
+        <xsl:element name="li">
+            <xsl:attribute name="class">biblio</xsl:attribute>
+            <xsl:attribute name="id">
+                <xsl:value-of select="@xml:id"/>
+            </xsl:attribute>
+            <xsl:apply-templates/>
+        </xsl:element>
+        <br/>
+    </xsl:template>
+
+    <xsl:template match="tei:listBibl">
+        <ul class="bibl">
+            <xsl:apply-templates/>
+        </ul>
+    </xsl:template>
+
+
+
+
+    <!-- footnotes, annotations -->
+
+
+
+    <xsl:template match="tei:note">
+
+        <xsl:param name="caption"/>
+
+        <xsl:choose>
+            <xsl:when test="parent::tei:div[@type = 'footnotes']">
+                <!--   Fussnoten am Text- oder Seitenende -->
+                <div class="footnote">
+                    <a>
+                        <xsl:attribute name="name">
+                            <xsl:text>fn</xsl:text>
+                            <xsl:value-of select="@n"/>
+                        </xsl:attribute>
+                        <a>
+                            <xsl:attribute name="href">
+                                <xsl:text>#fna</xsl:text>
+                                <xsl:value-of select="@n"/>
+                            </xsl:attribute>
+                            <xsl:value-of select="@n"/>
+
+                        </a>
+                    </a>
+                    <xsl:apply-templates/>
+                </div>
+            </xsl:when>
+            <!--  in Text integriert, nur Verweis , Fussnotenabschnitt mit foreach generiert -->
+            <xsl:when test="@type = 'footnote'">
+                <a>
+                    <xsl:attribute name="id">
+                        <xsl:text>fna</xsl:text>
+                        <xsl:number level="any" count="tei:note[@type = 'footnote']"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="class">
+                        <xsl:text>fn</xsl:text>
+                    </xsl:attribute>
+                    <xsl:attribute name="href">
+                        <xsl:text>#fn</xsl:text>
+                        <xsl:number level="any" count="tei:note[@type = 'footnote']"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="title">
+                        <xsl:copy-of select="normalize-space(.)"/>
+                    </xsl:attribute>
+                    <xsl:value-of select="$caption"/>
+                    <xsl:text>[</xsl:text>
+                    <xsl:number level="any" count="tei:note[@type = 'footnote']"/>
+                    <xsl:text>]</xsl:text>
+                </a>
+            </xsl:when>
+            <xsl:otherwise> </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template match="tei:g">
+        <span  class="mufi"><xsl:apply-templates></xsl:apply-templates></span>
+    </xsl:template>
+
+    <!-- Formatiere Fußnotenreferenz für aktuellen Knoten -->
+    <!-- <xsl:template name="footnote">
+        <a>
+            <xsl:attribute name="id">
+                <xsl:text>fna</xsl:text>
+                <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+            </xsl:attribute>
+            <xsl:attribute name="class">
+                <xsl:text>fn</xsl:text>                    
+            </xsl:attribute>
+            <xsl:attribute name="href">
+                <xsl:text>#fn</xsl:text>
+                <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+            </xsl:attribute>
+            <xsl:attribute name="title">
+                <xsl:copy-of select="normalize-space(.)"/>
+            </xsl:attribute>
+            <xsl:text>[</xsl:text><xsl:number level="any" count="tei:note[@type ='footnote']"/> <xsl:text>]</xsl:text>
+        </a>       
+    </xsl:template>
+    
+   <xsl:template match="tei:note[@type='footnote'][not(preceding-sibling::tei:quote[@type='grosszitat'])]">
+       <xsl:call-template name="footnote"></xsl:call-template>
+   </xsl:template> -->
+
+
+    <!-- Versionshistorie -->
+    <xsl:template match="tei:TEI//tei:teiHeader/tei:revisionDesc">
+    <xsl:choose>
+        <xsl:when test=".">
+            <xsl:element name="div"><xsl:attribute name="id">versionsbox</xsl:attribute>
+                <xsl:for-each select="tei:change">
+                    <xsl:element name="h3"><xsl:text>Version </xsl:text><xsl:value-of select="@n"/><xsl:text> (</xsl:text><xsl:value-of select="@when"/><xsl:text>)</xsl:text></xsl:element>
+                    <xsl:element name="p">
+                        <xsl:value-of select="tei:p"/>
+                    </xsl:element>
+                </xsl:for-each>
+            </xsl:element>    
+        </xsl:when>
+    </xsl:choose>
+</xsl:template>
+
+
+    <xsl:template match="tei:argument">
+        <xsl:choose>
+            <xsl:when test="@xml:lang = 'de'">
+                <div id="abstract_de" class="abstract">
+                    <h1>Abstract</h1>
+                    
+                    <xsl:apply-templates/>
+                </div>
+            </xsl:when>
+            <xsl:when test="@xml:lang = 'en'">
+                <hr class="one"/>
+                <div id="abstract_en" class="abstract">
+                    <!--        <h1>Abstract (englisch)</h1> -->
+                    
+                    <xsl:apply-templates/>
+                </div>
+                
+                <!-- Versionshistorie -->
+                <hr class="one"/>
+                <xsl:for-each select="/tei:TEI//tei:teiHeader/tei:revisionDesc">
+                    <xsl:if test="tei:change[@status='published']">
+                        <xsl:element name="div"><xsl:attribute name="id">versionsbox</xsl:attribute>
+                            <xsl:for-each select="tei:change">
+                                <xsl:element name="h3"><xsl:text>Version </xsl:text><xsl:value-of select="@n"/><xsl:text> (</xsl:text><xsl:value-of select="substring(@when,9)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(@when,6,2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(@when,1,4)"/><xsl:text>)</xsl:text></xsl:element>
+                                <xsl:element name="p">
+                                    <xsl:value-of select="tei:p"/>
+                                </xsl:element>
+                            </xsl:for-each>
+                        </xsl:element>  
+                    </xsl:if>
+                </xsl:for-each>
+                
+                
+                
+                <!-- Inhaltsuebersicht -->
+                
+                <div id="headings">
+                    <br/>
+                    <br/>
+                    <hr class="two"/>
+                    <br/>
+                    <ul>
+                        <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+                            <li>
+                                <!--<xsl:number level="multiple" count="tei:div" format="1.1. "/>-->
+                                <a>
+                                    <xsl:attribute name="href">
+                                        <xsl:text>#hd</xsl:text>
+                                        <xsl:number level="any"/>
+                                    </xsl:attribute>
+                                    <xsl:value-of select="."/>
+                                </a>
+                                <xsl:apply-templates select="../tei:argument/tei:p">
+                                    <xsl:with-param name="caption">true</xsl:with-param>
+                                </xsl:apply-templates>
+                            </li>
+                        </xsl:for-each>
+                    </ul>
+                </div>
+                <br/>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+
+    <xsl:template match="tei:head">
+
+        <a>
+            <xsl:attribute name="name">
+                <xsl:text>hd</xsl:text>
+                <xsl:number level="any"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+        <xsl:choose>
+            <xsl:when test="parent::tei:div[@type = 'subchapter']">
+                <h3>
+                    <div style="position:relative;width:90%;">
+                        <xsl:apply-templates/>
+                    </div>
+                </h3>
+            </xsl:when>
+            <xsl:otherwise>
+
+                <h2>
+                    <div style="position:relative;width:90%;">
+                        <xsl:apply-templates/>
+                    </div>
+                </h2>
+
+            </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+
+
+
+    <!-- closer -->
+    <xsl:template match="tei:closer">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- closer -->
+    <xsl:template match="tei:opener">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- closer -->
+    <xsl:template match="tei:salute">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- Namen -->
+    <xsl:template match="tei:name">
+        <xsl:apply-templates/>
+    </xsl:template>
+    <!-- Datum -->
+    <xsl:template match="tei:dateline">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="tei:date">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- index  erst mal auslassen-->
+    <xsl:template match="tei:index"> </xsl:template>
+
+    <!--  Anker fuer Spruenge im Text -->
+    <xsl:template match="tei:anchor">
+        <a>
+            <xsl:attribute name="name">
+                <xsl:value-of select="@xml:id"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+    </xsl:template>
+
+    <!--  Textkritik -->
+
+    <xsl:template match="tei:app">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="tei:rdg">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="tei:l">
+        <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+        <xsl:for-each select=".">
+            <xsl:apply-templates/><br/>
+        </xsl:for-each>
+    </xsl:template>
+
+    <xsl:template match="tei:quote">
+        <xsl:choose>
+        <!--   <xsl:choose><xsl:when test="preceding-sibling::tei:note">
+            <xsl:text> &#187;</xsl:text>
+            <xsl:apply-templates/>
+            <xsl:text>&#171;</xsl:text>  
+        </xsl:when>-->
+            <xsl:when test="@type='motto'">
+                <xsl:apply-templates/> 
+            </xsl:when>
+            <xsl:otherwise> <xsl:text>&#187;</xsl:text>
+                <xsl:apply-templates/>
+                <xsl:text>&#171;</xsl:text></xsl:otherwise></xsl:choose>  
+    </xsl:template>
+    
+<xsl:template match="tei:emph">
+    <xsl:apply-templates></xsl:apply-templates>
+</xsl:template>
+
+    <xsl:template match="tei:term">
+        <xsl:choose>
+            <xsl:when test="@type='dh'">
+                <span style="color:#035151"><i><xsl:apply-templates></xsl:apply-templates></i></span>
+            </xsl:when>
+            <!-- ergänzt 13.11.2020 HFS -->         
+            
+            <xsl:when test="@type='figure'">
+                <span style="color:#585858"><xsl:apply-templates></xsl:apply-templates></span>
+            </xsl:when>
+            <xsl:when test="@type='name'">
+                <span style="letter-spacing:0.1em"><xsl:apply-templates></xsl:apply-templates></span>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:apply-templates></xsl:apply-templates>
+            </xsl:otherwise>
+        </xsl:choose>
+        
+    </xsl:template>
+
+    <xsl:template match="tei:hi |  tei:rs/tei:hi">
+        <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+        <xsl:choose>
+            <xsl:when test="@rend='latin'">
+                <span style="font-family:junicode"><xsl:apply-templates></xsl:apply-templates></span>
+            </xsl:when>
+            <xsl:when test="@rend = 'italics' or @rend = 'italic'">
+                <i>
+                    <xsl:apply-templates/>
+                </i>
+            </xsl:when>
+            <xsl:when test="@rend = 'bold'">
+                <b>
+                    <xsl:apply-templates/>
+                </b>
+            </xsl:when>
+            <xsl:when test="@rend = 'underline'">
+                <u>
+                    <xsl:apply-templates/>
+                </u>
+            </xsl:when>
+            <xsl:when test="@rend = 'super'">
+                <sup>
+                    <xsl:apply-templates/>
+                </sup>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:apply-templates/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:p | tei:seg | tei:lg">
+        <xsl:choose>
+            <xsl:when test="./tei:quote[@type = 'grosszitat']">
+                <xsl:element name="p">
+                    <span class="grosszitat">
+                        <xsl:apply-templates/>
+                    </span>
+                </xsl:element>
+            </xsl:when>
+            
+            <xsl:when test="parent::tei:div[@type = 'chapter'] | parent::tei:div[@type = 'subchapter']">
+                <xsl:element name="p">                    
+                    <xsl:attribute name="id"><xsl:text>pid</xsl:text><xsl:number count="tei:p" format="1"
+                        from="tei:div[@type = 'chapter'][1]" level="any"/></xsl:attribute>
+                    
+                    <span style="float: right; padding: .2em; color: #999; border: 1px solid #ccc; background-color: #eee; margin-right: -80px;">
+                        <xsl:text>[</xsl:text><xsl:element name="a">
+                            <xsl:attribute name="href"><xsl:text>#pid</xsl:text>
+                                <xsl:number count="tei:p" format="1"
+                                    from="tei:div[@type = 'chapter'][1]" level="any"/></xsl:attribute>
+                            <xsl:number count="tei:p" format="1"
+                                from="tei:div[@type = 'chapter'][1]" level="any"/>
+                        </xsl:element>
+                        <xsl:text>]</xsl:text>
+                    </span>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:when>
+            
+            <!--<xsl:when test="./tei:quote[@type = 'motto']">
+                <xsl:element name="p">
+                    <span class="motto">
+                        <xsl:apply-templates/>
+                    </span>
+                </xsl:element>
+            </xsl:when>-->
+            <xsl:otherwise>
+                <xsl:element name="p">
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+
+
+    <xsl:template match="tei:bibl/tei:ref">
+        <a>
+            <xsl:attribute name="href">
+                <xsl:value-of select="@target"/>
+            </xsl:attribute>
+            <xsl:attribute name="target">_blank</xsl:attribute>
+            <xsl:apply-templates/>
+        </a>
+
+    </xsl:template>
+
+
+    <xsl:template match="tei:bibl/tei:title">
+       <xsl:choose>
+           <xsl:when test="@type='desc'">
+               <i><xsl:apply-templates></xsl:apply-templates></i>
+           </xsl:when>
+       </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:graphic">
+
+        <div class="medium">
+            <div class="field-item even" rel="og:image rdfs:seeAlso" resource="../medium1">
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="$img"/>
+                        <xsl:value-of select="substring-after(@url, 'medien/')"/>
+                        <!-- <xsl:text>.../medien1/</xsl:text><xsl:value-of select="substring-after(@url, '.../medien')"/> -->
+                    </xsl:attribute>
+                    <xsl:attribute name="title">
+                        <xsl:value-of select="normalize-space(tei:desc)"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="rel">
+                        <xsl:text>gallery-node</xsl:text>
+                    </xsl:attribute>
+                    <xsl:attribute name="class">
+                        <xsl:text>colorbox</xsl:text>
+                    </xsl:attribute>
+                    <xsl:element name="img">
+                        <xsl:attribute name="width">
+                            <xsl:choose>
+                                <xsl:when test="@width">
+                                    <xsl:value-of select="@width"/>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:text>900</xsl:text>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </xsl:attribute>
+              
+                        <xsl:attribute name="alt">
+                            <xsl:value-of select="tei:desc"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="src">
+                            <xsl:value-of select="$img2"/>
+                            <xsl:value-of select="substring-after(@url, 'medien/')"/>
+                        </xsl:attribute>
+                        <xsl:text/>
+                    </xsl:element>   
+                </a>
+            </div>
+            <div class="img_desc">
+                <xsl:apply-templates select="tei:desc"/>
+            </div>
+        </div>
+
+
+    </xsl:template>
+
+
+    <xsl:template match="tei:media">
+        <xsl:choose>
+            <xsl:when test="@type = 'svg'">
+                <div class="medium">
+                    <object width="900" height="450">
+                        <!--  <xsl:attribute name="alt">
+                            <xsl:value-of select="tei:desc"/>
+                        </xsl:attribute>-->
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="data">
+                            <xsl:value-of select="$img"/>
+                            <xsl:value-of select="substring-after(@url, 'medien/')"/>
+                        </xsl:attribute>
+                        <xsl:text/>
+                        <xsl:attribute name="type">image/svg+xml</xsl:attribute>
+                    </object>
+                </div>
+                <div class="img_desc">
+                    <xsl:apply-templates select="tei:desc"/>
+                </div>
+            </xsl:when>
+        </xsl:choose>
+<xsl:choose>
+    <xsl:when test="@type='video'">
+        <div class="medium">
+        <xsl:element name="iframe">
+            <xsl:attribute name="src"><xsl:value-of select="@url"/></xsl:attribute>
+            <xsl:attribute name="width">560</xsl:attribute>
+            <xsl:attribute name="height">315</xsl:attribute>
+            <xsl:attribute name="frameborder">0</xsl:attribute>
+            <xsl:attribute name="height">315</xsl:attribute>
+            <xsl:attribute name="allow">autoplay; encrypted-media</xsl:attribute>
+            <xsl:attribute name="allowfullscreen"></xsl:attribute>
+        </xsl:element>
+        </div>
+            <div class="img_desc">            
+                <xsl:apply-templates select="tei:desc"></xsl:apply-templates>
+            </div>       
+    </xsl:when>
+</xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:ref[parent::tei:desc]">
+        <xsl:choose>
+            <xsl:when test="@type = 'extern'">
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:otherwise>
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+
+    <xsl:template match="tei:code">
+        <xsl:element name="span">
+            <xsl:attribute name="class">code</xsl:attribute>
+            <xsl:apply-templates/>
+        </xsl:element>
+    </xsl:template>
+
+<xsl:template match="tei:table">
+    <hr style="width:50%; margin-left:0px;"/>
+    <table class="article">
+     <xsl:for-each select="tei:row">
+         <tr><xsl:apply-templates></xsl:apply-templates></tr>
+     </xsl:for-each>
+    </table>
+    <hr style="width:50%; margin-left:0px;"/>
+</xsl:template>
+
+<xsl:template match="tei:lb">
+    <br/>
+</xsl:template>
+
+<xsl:template match="tei:cell">
+   <xsl:choose>
+       <xsl:when test=" ancestor::tei:row[@label='label']">
+           <th><xsl:apply-templates></xsl:apply-templates></th>
+       </xsl:when>
+       <xsl:otherwise>
+           <td style="padding-top: 15px; padding-bottom: 15px; padding-right: 25px;"><xsl:apply-templates></xsl:apply-templates></td>
+       </xsl:otherwise>
+   </xsl:choose>
+</xsl:template>
+
+    <xsl:template match="tei:desc[@type = 'graphic']">
+
+        <ul class="abbildung">
+            <xsl:for-each select=".">
+                <xsl:element name="li">
+                    <xsl:attribute name="id">
+                        <xsl:value-of select="@xml:id"/>
+                    </xsl:attribute>
+                    <a>
+                        <xsl:attribute name="href">
+                            <xsl:value-of select="tei:ref[@type = 'graphic']/@target"/>
+                        </xsl:attribute>
+                        <xsl:text>Abb. </xsl:text><xsl:number count="tei:desc[@type='graphic']"></xsl:number>
+                    </a><xsl:text>: </xsl:text>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:for-each>
+        </ul>
+    </xsl:template>
+
+
+
+   <!-- <xsl:template match="tei:div[@type = 'chapter'] | tei:div[@type = 'subchapter']">
+        <xsl:element name="div">
+            <xsl:attribute name="id">
+                <xsl:value-of select="@type"/>
+            </xsl:attribute>
+            <xsl:apply-templates/>
+        </xsl:element>
+    </xsl:template>-->
+</xsl:stylesheet>
diff --git a/skripte/2022/transformation_html.xsl b/skripte/2022/transformation_html.xsl
new file mode 100644
index 0000000000000000000000000000000000000000..10190c274bb42b4ca850d364d8414482d67be20c
--- /dev/null
+++ b/skripte/2022/transformation_html.xsl
@@ -0,0 +1,1948 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- Transformationsskript für die Beiträge in der Zeitschrift für digitale Geisteswissenschaften,
+    Ersteller: Marcus Baumgarten, baumgarten@hab.de
+    Herzog August Bibliothek Wolfenbüttel
+    Forschungsverbund MWW
+    Das Skript steht unter einer CC BY-SA 3.0 Lizenz-->
+<xsl:stylesheet xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:mets="http://www.loc.gov/METS/"
+    xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:exist="http://exist.sourceforge.net/NS/exist"
+    xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common"
+    extension-element-prefixes="date exsl" exclude-result-prefixes="tei mets xlink exist"
+    version="2.0">
+
+
+    <xsl:output encoding="UTF-8" indent="yes" method="html" doctype-public="-//W3C//DTD HTML 4.01//EN"
+        doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>
+
+
+    <xsl:strip-space elements="*"/>
+    <xsl:param name="dir"/>
+    <xsl:param name="q"/>
+    <xsl:param name="qtype"/>
+    <xsl:param name="distype"/>
+    <xsl:param name="pvID"/>
+    <xsl:param name="footerXML"/>
+    <xsl:param name="footerXSL"/>
+    <xsl:param name="view"/>
+    <xsl:variable name="smallcase" select="'&#173;'"/>
+    <xsl:variable name="uppercase" select="'-'"/>
+    <xsl:variable name="gbv">
+        <xsl:text>http://gso.gbv.de/DB=2.1/PPN?PPN=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="opac">
+        <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/PPN?PPN=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="gnd">
+        <xsl:text>http://d-nb.info/gnd/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="vd16">
+        <xsl:text>http://gateway-bayern.de/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="v1"><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level='a']"></xsl:value-of></xsl:variable>
+    <xsl:variable name="tadirah">
+        <xsl:text>http://tadirah.dariah.eu/vocab/index.php?tema=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="img">
+        <xsl:text>https://www.zfdg.de/sites/default/files/medien/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="img2">
+        <xsl:text>https://www.zfdg.de/sites/default/files/styles/medium_in_artikel/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="doi">
+        <xsl:text>https://doi.org/</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="now" select="current-dateTime()"/>
+
+    <xsl:template match="/">
+
+
+        <html>
+            <head>
+                <meta http-equiv="Content-Type" content="text/html;"/>
+                <title>ZfdG Beitrag</title>
+
+
+                <link rel="stylesheet" type="text/css" href="style.css"/>
+
+
+
+            </head>
+
+            <!-- Bedingungen und Regeln: Inhaltsverzeichnis an Abstracts gebunden -->
+  
+            <body>
+                <!--  Dokumentkopf -->
+                
+                <!-- Titel -->
+                <div id="caption">
+                    <xsl:element name="span">
+                        <xsl:attribute name="class">Z3988</xsl:attribute>
+                        <xsl:attribute name="title">
+                            <xsl:text>url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rfr_id=info%3Asid%2Fzotero.org%3A2&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=article&amp;rft.atitle=</xsl:text>
+                            <xsl:value-of select="replace($v1, ' ', '%20')"></xsl:value-of>
+                            <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name">
+                                <xsl:text>&amp;rft.au=</xsl:text>
+                                <xsl:value-of select="tei:forename"></xsl:value-of>
+                                <xsl:text>%20</xsl:text>
+                                <xsl:value-of select="tei:surname"></xsl:value-of>
+                            </xsl:for-each>  
+                            <xsl:text>&amp;rft.series=Zeitschrift%20f%C3%BCr%20digitale%20Geisteswissenschaften</xsl:text>
+                            <xsl:text>&amp;rft.date=</xsl:text>
+                            <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date/@when"></xsl:value-of>
+                            <xsl:text>&amp;rft_id=https://doi.org/</xsl:text>
+                            <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"></xsl:value-of>
+                            <xsl:text>&amp;rft.language=</xsl:text><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:langUsage/tei:language[1]/@ident"></xsl:value-of>
+                            <xsl:text>&amp;rft.rights=CC BY-SA 4.0</xsl:text>
+                        </xsl:attribute>
+                    </xsl:element>
+                    <div>
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                <xsl:for-each
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName">
+                                    <div style="margin: 1em 0 1em 0;">
+                                        <xsl:apply-templates select="tei:name/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates select="tei:name/tei:surname"/>
+                                        <xsl:text>  </xsl:text>
+                                        <xsl:element name="a">
+                                            <xsl:attribute name="href">
+                                                <xsl:text>javascript:switchlayer('author</xsl:text>
+                                                <xsl:number
+                                                    count="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt"/>
+                                                <xsl:text>');</xsl:text>
+                                            </xsl:attribute>
+                                            
+                                            <img style="margin-left: 1%"
+                                                src="https://www.zfdg.de/sites/all/themes/fvmww/images/arrow-down.png"
+                                                alt="Autoreninformationen"/>
+                                        </xsl:element>
+                                    </div>
+                                    <xsl:element name="div">
+                                        <xsl:attribute name="style">
+                                            <xsl:text>display:none; width:100%; background-color: #fafafa;</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:attribute name="id">
+                                            <xsl:text>author</xsl:text>
+                                            <xsl:number
+                                                count="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:text> Kontakt: </xsl:text>
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:text>mailto:</xsl:text>
+                                                <xsl:value-of select="tei:email"/>
+                                            </xsl:attribute>
+                                            
+                                            <xsl:apply-templates select="tei:email"/>
+                                        </a>
+                                        <br/>
+                                        <xsl:text>Institution: </xsl:text>
+                                        <xsl:apply-templates select="following::tei:affiliation[1]"/>
+                                        <xsl:text> </xsl:text>
+                                        <br/>
+                                        <xsl:if test="tei:idno[@type = 'gnd']">
+                                            <xsl:text>GND: </xsl:text>
+                                            <a>
+                                                <xsl:attribute name="href">
+                                                    <xsl:text> http://d-nb.info/gnd/</xsl:text>
+                                                    <xsl:value-of select="tei:idno[@type = 'gnd']"/>
+                                                </xsl:attribute>
+                                                <xsl:attribute name="target"
+                                                    ><xsltext>_blank</xsltext>:</xsl:attribute>
+                                                <xsl:value-of select="tei:idno[@type = 'gnd']"/>
+                                            </a>
+                                            <br/>
+                                        </xsl:if>
+                                        <xsl:if test="tei:idno[@type = 'orcid']">
+                                            <xsl:text>ORCID: </xsl:text>
+                                            <a>
+                                                <xsl:attribute name="href"><xsl:text>https://orcid.org/</xsl:text><xsl:value-of select="tei:idno[@type = 'orcid']"/></xsl:attribute>
+                                                <xsl:attribute name="target"
+                                                    ><xsltext>_blank</xsltext>:</xsl:attribute>
+                                                <xsl:value-of select="tei:idno[@type = 'orcid']"/>
+                                            </a>
+                                            <br/>
+                                        </xsl:if>
+                                        <!-- CREDIT Rollen -->
+                                        <xsl:if test="preceding-sibling::tei:idno[@type = 'credit']">
+                                            <xsl:for-each select="preceding-sibling::tei:idno[@type='credit']">
+                                                <xsl:text>Beitrags-Rolle (CRediT): </xsl:text>
+                                                <a>
+                                                    <xsl:attribute name="href">
+                                                        <xsl:value-of select="@corresp"/></xsl:attribute>
+                                                    <xsl:attribute name="target">
+                                                        <xsltext>_blank</xsltext>
+                                                    </xsl:attribute>
+                                                    <xsl:value-of select="preceding-sibling::tei:idno[@type = 'credit']"/>
+                                                </a>
+                                                <br/>
+                                            </xsl:for-each>
+                                        </xsl:if>
+                                    </xsl:element>
+                                </xsl:for-each>
+                            </xsl:when>
+                        </xsl:choose>
+                        
+                    </div>
+               
+                    <div id="info1">
+                        <hr class="one"/>
+                        <!--  <xsl:text>DOI: </xsl:text><xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno[@type='doi']"/><br/> -->
+
+
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno/@type = 'doi'">
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>DOI: </xsl:text>
+                                    </span>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:value-of select="$doi"/>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                        />
+                                    </a>
+                                </p>
+                            </xsl:when>
+                            <xsl:otherwise>
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>DOI: </xsl:text>
+                                    </span>
+                                    <xsl:text>In Kürze</xsl:text>
+                                </p>
+                            </xsl:otherwise>
+                        </xsl:choose>
+
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Nachweis im OPAC der Herzog August Bibliothek: </xsl:text>
+                            </span>
+                            <xsl:choose>
+                                <xsl:when
+                                    test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']">
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/XMLPRS=N/PPN?PPN=</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:attribute name="target">
+                                            <xsl:text>_blank</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']"
+                                        />
+                                    </a>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:text>In Kürze</xsl:text>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </p>
+
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Erstveröffentlichung: </xsl:text>
+                            </span>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date"/>
+                               
+                        </p>
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Lizenz:</xsl:text>
+                            </span>
+                            <xsl:text> Sofern nicht anders angegeben </xsl:text>
+                            <xsl:choose>
+                                <xsl:when
+                                    test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:availability[1]/tei:licence[@target = 'http://creativecommons.org/licenses/by/4.0/']">
+
+
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>http://creativecommons.org/licenses/by-sa/4.0/</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:attribute name="rel">
+                                            <xsl:text>license</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:attribute name="target">
+                                            <xsl:text>_blank</xsl:text>
+                                        </xsl:attribute>
+                                        <xsl:element name="img">
+                                            <xsl:attribute name="alt">
+                                                <xsl:text>Creative Commons Lizenzvertrag</xsl:text>
+                                            </xsl:attribute>
+                                            <xsl:attribute name="src">
+                                                <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text>
+                                            </xsl:attribute>
+                                        </xsl:element>
+                                        <br/>
+                                    </a>
+
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:availability[1]/tei:licence"
+                                    />
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </p>
+                    </div>
+                    <div id="info2">
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Medienlizenzen: </xsl:text>
+                            </span>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl/tei:p[1]"
+                            />
+                        </p>
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Letzte Überprüfung aller Verweise: </xsl:text>
+                            </span>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl//tei:date"
+                            />
+                        </p>
+
+
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']">
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>GND-Verschlagwortung: </xsl:text>
+                                    </span>
+                                    <xsl:for-each
+                                        select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']/tei:term">
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:value-of select="$gnd"/>
+                                                <xsl:value-of select="./tei:ref/@target"/>
+                                            </xsl:attribute>
+                                            <xsl:attribute name="target">
+                                                <xsl:text>_blank</xsl:text>
+                                            </xsl:attribute>
+                                            <xsl:value-of select="."/>
+                                        </a>
+                                        <xsl:text> | </xsl:text>
+                                    </xsl:for-each>
+                                </p>
+                            </xsl:when>
+                        </xsl:choose>
+                        <xsl:choose>
+                            <xsl:when
+                                test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']">
+                                <p>
+                                    <span class="bolder">
+                                        <xsl:text>TaDiRAH-Verschlagwortung: </xsl:text>
+                                    </span>
+                                    <xsl:for-each
+                                        select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']/tei:term">
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:value-of select="$tadirah"/>
+                                                <xsl:value-of select="./tei:ref/@target"/>
+                                            </xsl:attribute>
+                                            <xsl:attribute name="target">
+                                                <xsl:text>_blank</xsl:text>
+                                            </xsl:attribute>
+                                            <xsl:value-of select="."/>
+                                        </a>
+                                        <xsl:text> | </xsl:text>
+                                    </xsl:for-each>
+                                </p>
+                            </xsl:when>
+                        </xsl:choose>
+                        <p>
+                            <span class="bolder">
+                                <xsl:text>Empfohlene Zitierweise: </xsl:text>
+                            </span>
+                            <xsl:choose>
+                                <xsl:when
+                                    test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno/@type = 'doi'">
+                                    <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                    <xsl:text> </xsl:text>
+                                    <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"/>
+
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    
+                                    
+                                    
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+                                    
+                                    
+                                    
+                                    <xsl:if
+                                        test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                                        <xsl:text>, </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:apply-templates
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"
+                                        />
+                                    </xsl:if>
+
+                                    <xsl:text>: </xsl:text>
+                                    <xsl:apply-templates
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title"/>
+                                    <xsl:text>. In: Zeitschrift für digitale Geisteswissenschaften. Wolfenbüttel 2022.</xsl:text>
+                                    <xsl:text> </xsl:text>
+
+                                    <xsl:text> text/html Format.</xsl:text>
+                                    <!-- <xsl:text>Eingesehen am: </xsl:text>
+                                    <xsl:value-of  select="$now"/>.   -->
+                                    <xsl:text> DOI: </xsl:text>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:value-of select="$doi"/>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                        />
+                                    </a>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:text>in Kürze verfügbar</xsl:text>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </p>
+
+                        <hr class="one"/>
+                    </div>
+
+                </div>
+
+
+
+                <div class="content">
+                    <!-- Haupttext -->
+                    <xsl:apply-templates
+                        select="tei:TEI/tei:text//tei:div[@type = 'chapter'] | tei:TEI/tei:text//tei:div[@type = 'abstract'] | tei:TEI/tei:text//tei:div[@type = 'appendix']"
+                    />
+                </div>
+
+
+         
+
+                <!-- Fussnotenbereich  -->
+
+                <div id="fussnoten">
+                    <xsl:if test="tei:TEI/tei:text/tei:body//tei:note[@type = 'footnote']">
+                        <hr/>
+
+                    </xsl:if>
+
+
+                    <a name="footnotes"/>
+                    <xsl:choose>
+                        <xsl:when test="tei:TEI/tei:text/tei:body/tei:div[@type = 'footnotes']">
+                            <!--  Wenn es einen Fussnotenbereich gibt -->
+                            <xsl:apply-templates
+                                select="tei:TEI/tei:text/tei:body/tei:div[@type = 'footnotes']"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <!--  andernfalls notes auswerten -->
+                            <div class="footnote">
+                                <h2>Fußnoten</h2>
+                                <ul class="footnote">
+                                    <xsl:for-each
+                                        select="tei:TEI/tei:text/tei:body//tei:note[@type = 'footnote']">
+
+                                        <li class="footnote">
+                                            <div class="footnote2">
+                                                <xsl:attribute name="id">
+                                                  <xsl:text>fn</xsl:text>
+                                                  <xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"/>
+                                                </xsl:attribute>
+                                                <xsl:attribute name="href">
+                                                  <xsl:text>#fna</xsl:text><xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"/>
+                                                </xsl:attribute>[<a><xsl:attribute name="href">
+                                                  <xsl:text>#fna</xsl:text><xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"
+                                                  /></xsl:attribute><xsl:number level="any"
+                                                  count="tei:note[@type = 'footnote']"/></a>]</div>
+                                            <div class="footnote3">
+                                                <xsl:apply-templates/>
+                                            </div>
+                                        </li>
+                                        <br/>
+                                    </xsl:for-each>
+                                </ul>
+                            </div>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </div>
+                <!-- Bibliographie -->
+                <!-- auskommentiert MB: 28.10.20 -->
+                <div class="bibliography">
+                    <hr/>
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body//tei:div[@type = 'bibliography']"
+                    />
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'bibliography2']"
+                    /> 
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'bibliography3']"
+                    /> 
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'bibliography4']"
+                    /> 
+                </div>
+                                
+                <!-- Abbildungsnachweis -->
+                <div class="abbildungsnachweis">
+                    <hr/>
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body//tei:div[@type = 'abbildungsnachweis']"
+                    />
+                </div>
+                <!-- Glossar -->
+                <xsl:choose>
+                    <xsl:when test="//tei:TEI/tei:text[1]/tei:body[1]/tei:div[1]/tei:div[@type='glossar']">
+                <div class="glossar">
+                    <hr/>
+                    <xsl:apply-templates
+                        select="/tei:TEI/tei:text/tei:body/tei:div/tei:div[@type = 'glossar']"/>
+                </div>
+                    </xsl:when>
+                </xsl:choose>
+                <!-- Ende main -->
+            </body>
+        </html>
+    </xsl:template>
+
+    <xsl:template match="tei:body | tei:front">
+        <xsl:apply-templates/>
+    </xsl:template>
+    
+    <!-- Besonderheit Hieroglype MB 19.6.2020-->
+    <xsl:template match="tei:val[@style]">
+        <span style="font-size: 10px;"><xsl:apply-templates/></span>
+    </xsl:template>
+
+    <!--header-->
+    <!-- editor, contributer etc. -->
+    
+    <xsl:template match="tei:respStmt">
+        <xsl:if test="position() != 1">
+            <xsl:text>,</xsl:text>
+        </xsl:if>
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="tei:resp"/>
+        <xsl:text> </xsl:text>
+        <xsl:value-of select="tei:name"/>
+    </xsl:template>
+
+    <!-- Front -->
+
+    <xsl:template match="tei:titlePage">
+        <p class="content">
+            <xsl:apply-templates/>
+        </p>
+    </xsl:template>
+
+    <xsl:template match="tei:docTitle">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+
+    <xsl:template match="tei:docDate">
+        <p class="content">
+            <xsl:apply-templates/>
+        </p>
+    </xsl:template>
+
+    <xsl:template match="tei:docAuthor">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+
+    <xsl:template match="tei:titlePart">
+        <p class="content">
+            <xsl:apply-templates/>
+        </p>
+    </xsl:template>
+
+
+    <!--body-->
+     <!--main distribution-->
+    <xsl:template match="tei:div[not(@type='footnotes')] | tei:div1[not(@type='footnotes')] | tei:div2[not(@type='footnotes')] | tei:div3[not(@type='footnotes')]">
+        <a>
+            <xsl:attribute name="name">
+                <xsl:text>div</xsl:text>
+                <xsl:number level="any"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+        <xsl:if test="@xml:id[starts-with(.,'org') or starts-with(.,'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+    
+            <xsl:if test="@type = 'abstract'">
+                <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>abstract</xsl:text></xsl:attribute>
+            
+            <xsl:apply-templates/>
+            </xsl:element>
+            </xsl:if>
+            <xsl:if test="@type ='chapter'">
+                <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>chapter</xsl:text></xsl:attribute>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:if>
+        <xsl:if test="@type ='subchapter'">
+            <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>subchapter</xsl:text></xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:if>
+        <xsl:if test="@type ='bibliography'">
+            <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>bibliography</xsl:text></xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:if>
+        
+        <xsl:if test="@type ='bibliography2'">
+            <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>bibliography2</xsl:text></xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:if>
+        
+        <xsl:if test="@type ='bibliography3'">
+            <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>bibliography3</xsl:text></xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:if>
+        
+        
+        <xsl:if test="@type ='abbildungsnachweis'">
+            <xsl:element name="div">
+                <xsl:attribute name="id"><xsl:text>abbildungsnachweis</xsl:text></xsl:attribute>
+                <xsl:apply-templates/>
+            </xsl:element>
+        </xsl:if>       
+       
+    </xsl:template>
+
+    <!--    Ueberschriften-->
+
+    <xsl:template match="h">
+
+        <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+        <a>
+            <xsl:attribute name="name">
+                <xsl:text>hd</xsl:text>
+                <xsl:number level="any"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+        <h2>
+            <xsl:apply-templates/>
+        </h2>
+    </xsl:template>
+
+
+    <!-- xsl:mode ansehen, p als type grosszitat? -->
+
+    <!--    Links -->
+    <xsl:template match="tei:ref">
+        <xsl:choose>
+            <xsl:when test="@type = 'footnote'">
+                <a>
+                    <xsl:attribute name="name">
+                        <xsl:text>fna</xsl:text>
+                        <xsl:value-of select="."/>
+                    </xsl:attribute>
+                    <a>
+                        <xsl:attribute name="href">
+                            <xsl:value-of select="@target"/>
+                        </xsl:attribute>
+                        <xsl:value-of select="."/>
+                    </a>
+                </a>
+            </xsl:when>
+
+            <xsl:when test="@type = 'intern'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'verweis'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="title">
+                           <xsl:value-of select="."/>
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'glossar'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'extern'">
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:when test="@type = 'graphic' and not(parent::tei:desc)">
+
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <!--      <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute> -->
+                    <span class="medium">
+                        <xsl:apply-templates/>
+                    </span>
+                </a>
+            </xsl:when>
+
+            <xsl:when test="@type = 'bibliography'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            
+            <xsl:when test="@type = 'bibliography2'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            
+            <xsl:when test="@type = 'bibliography3'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            
+            <xsl:when test="@type = 'bibliography4'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            
+            <xsl:when test="@type = 'abbildungsnachweis'">
+                <a>
+                    <xsl:if test="starts-with(@target, '#')">
+                        <xsl:attribute name="title">
+                            <xsl:value-of
+                                select="normalize-space(//tei:bibl[@xml:id = substring(current()/@target, 2)])"
+                            />
+                        </xsl:attribute>
+                    </xsl:if>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>
+            <xsl:otherwise>
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:ptr">
+        <xsl:apply-templates/>
+        <xsl:choose>
+            <xsl:when test="@type = 'google_books'"> [<a>
+                    <xsl:attribute name="href">
+                        <xsl:text>javascript:show_annotation_html('</xsl:text><xsl:value-of
+                            select="$dir"/><xsl:text>','</xsl:text><xsl:value-of select="@target"
+                        /><xsl:text>',400,600)</xsl:text>
+                    </xsl:attribute>
+                    <xsl:text>Google Books</xsl:text></a>] </xsl:when>
+            <xsl:when test="starts-with(@target, 'http://')"> [<a>
+                    <xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute>
+                    <xsl:attribute name="target">_blank</xsl:attribute>
+                    <xsl:text>Link</xsl:text>
+                </a>] </xsl:when>
+            <xsl:when test="@type = 'opac'"> [<a href="{normalize-space(concat($opac,@cRef))}"
+                    target="_blank">Nachweis im OPAC</a>] </xsl:when>
+            <xsl:when test="@type = 'varia'"> [<a>
+                    <xsl:attribute name="href"><xsl:value-of select="@cRef"/>
+                    </xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>
+                    <xsl:text>Nachweis</xsl:text></a>] </xsl:when>
+            <xsl:when test="@type = 'gbv'"> [<a href="{normalize-space(concat($gbv,@cRef))}"
+                    target="_blank">Nachweis im GVK</a>] </xsl:when>
+        </xsl:choose>
+ 
+        <xsl:choose>
+            <xsl:when test="@subtype = 'google_books'"> [<a>
+                <xsl:attribute name="href">
+                    <xsl:text>javascript:show_annotation_html('</xsl:text><xsl:value-of
+                        select="$dir"/><xsl:text>','</xsl:text><xsl:value-of select="@target"
+                        /><xsl:text>',400,600)</xsl:text>
+                </xsl:attribute>
+                <xsl:text>Google Books</xsl:text></a>] </xsl:when>
+            <xsl:when test="starts-with(@target, 'http://')"> [<a>
+                <xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute>
+                <xsl:attribute name="target">_blank</xsl:attribute>
+                <xsl:text>Link</xsl:text>
+            </a>] </xsl:when>
+            <xsl:when test="@subtype = 'opac'"> [<a href="{normalize-space(concat($opac,@cRef))}"
+                target="_blank">Nachweis im OPAC</a>] </xsl:when>
+            <xsl:when test="@subtype = 'varia'"> [<a>
+                <xsl:attribute name="href"><xsl:value-of select="@cRef"/>
+                </xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>
+                <xsl:text>Nachweis</xsl:text></a>] </xsl:when>
+            <xsl:when test="@subtype = 'gbv'"> [<a href="{normalize-space(concat($gbv,@cRef))}"
+                target="_blank">Nachweis im GVK</a>] </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+    
+    
+    
+    
+    
+
+    <xsl:template match="tei:list">        
+        <xsl:choose>
+            <xsl:when test="@type = 'unordered'">
+                <xsl:element name="ul">
+                    <xsl:attribute name="class">ul_article</xsl:attribute>
+                    <xsl:for-each select="tei:item">
+                        <xsl:element name="li">                           
+                            <xsl:apply-templates/>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:when>
+            
+            <xsl:when test="@type = 'ordered'">
+                <xsl:element name="ol">
+                    <xsl:attribute name="class">ol_article</xsl:attribute>
+                    <xsl:for-each select="tei:item">
+                        <xsl:element name="li">
+                            <xsl:apply-templates/>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:when>
+            
+            <xsl:when test="@type = 'gloss'">
+                <xsl:element name="table">
+                    <xsl:for-each select="tei:label">
+                        <xsl:element name="tr">
+                            <xsl:element name="td">
+                                <xsl:attribute name="id">
+                                    <xsl:value-of select="@xml:id"/>
+                                </xsl:attribute>
+                                <xsl:apply-templates select="tei:term"/>
+                                <br/>
+                                <br/>
+                            </xsl:element>
+
+                            <xsl:element name="td">
+                                <xsl:apply-templates
+                                    select="following-sibling::tei:item[position() = 1]/tei:gloss"/>
+                                <a>
+
+                                    <xsl:attribute name="href">
+                                        <xsl:text>#g</xsl:text>
+                                        <xsl:value-of select="@xml:id"/>
+                                    </xsl:attribute>
+                                    <xsl:text> [Zurück zum Text]</xsl:text>
+                                </a>
+                                <br/>
+                                <br/>
+                            </xsl:element>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:when>
+            
+            <!-- auskommentiert MB, 23.9.21: führte zu zweifach verschachtelten Listen -->
+            <xsl:otherwise>
+                <xsl:element name="ul">
+                    <xsl:for-each select="tei:item">
+                        <xsl:element name="li">
+                            <xsl:apply-templates/>
+                        </xsl:element>
+                    </xsl:for-each>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+
+
+    <xsl:template match="tei:bibl[parent::tei:listBibl]">
+        <xsl:element name="li">
+            <xsl:attribute name="class">biblio</xsl:attribute>
+            <xsl:attribute name="id">
+                <xsl:value-of select="@xml:id"/>
+            </xsl:attribute>
+            <xsl:apply-templates/>
+        </xsl:element>
+        <br/>
+    </xsl:template>
+
+    <xsl:template match="tei:listBibl">
+        <ul class="bibl">
+            <xsl:apply-templates/>
+        </ul>
+    </xsl:template>
+
+
+
+
+    <!-- footnotes, annotations -->
+
+
+
+    <xsl:template match="tei:note">
+
+        <xsl:param name="caption"/>
+
+        <xsl:choose>
+            <xsl:when test="parent::tei:div[@type = 'footnotes']">
+                <!--   Fussnoten am Text- oder Seitenende -->
+                <div class="footnote">
+                    <a>
+                        <xsl:attribute name="name">
+                            <xsl:text>fn</xsl:text>
+                            <xsl:value-of select="@n"/>
+                        </xsl:attribute>
+                        <a>
+                            <xsl:attribute name="href">
+                                <xsl:text>#fna</xsl:text>
+                                <xsl:value-of select="@n"/>
+                            </xsl:attribute>
+                            <xsl:value-of select="@n"/>
+                        </a>
+                    </a>
+                    <xsl:apply-templates/>
+                </div>
+            </xsl:when>
+            <!--  in Text integriert, nur Verweis , Fussnotenabschnitt mit foreach generiert -->
+            <xsl:when test="@type = 'footnote'">
+                <a>
+                    <xsl:attribute name="id">
+                        <xsl:text>fna</xsl:text>
+                        <xsl:number level="any" count="tei:note[@type = 'footnote']"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="class">
+                        <xsl:text>fn</xsl:text>
+                    </xsl:attribute>
+                    <xsl:attribute name="href">
+                        <xsl:text>#fn</xsl:text>
+                        <xsl:number level="any" count="tei:note[@type = 'footnote']"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="title">
+                        <xsl:copy-of select="normalize-space(.)"/>
+                    </xsl:attribute>
+                    <xsl:value-of select="$caption"/>
+                    <xsl:text>[</xsl:text>
+                    <xsl:number level="any" count="tei:note[@type = 'footnote']"/>
+                    <xsl:text>]</xsl:text>
+                </a>
+            </xsl:when>
+            <xsl:otherwise> </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <!-- Formatiere Fußnotenreferenz für aktuellen Knoten -->
+    <!-- <xsl:template name="footnote">
+        <a>
+            <xsl:attribute name="id">
+                <xsl:text>fna</xsl:text>
+                <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+            </xsl:attribute>
+            <xsl:attribute name="class">
+                <xsl:text>fn</xsl:text>                    
+            </xsl:attribute>
+            <xsl:attribute name="href">
+                <xsl:text>#fn</xsl:text>
+                <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+            </xsl:attribute>
+            <xsl:attribute name="title">
+                <xsl:copy-of select="normalize-space(.)"/>
+            </xsl:attribute>
+            <xsl:text>[</xsl:text><xsl:number level="any" count="tei:note[@type ='footnote']"/> <xsl:text>]</xsl:text>
+        </a>       
+    </xsl:template>
+    
+   <xsl:template match="tei:note[@type='footnote'][not(preceding-sibling::tei:quote[@type='grosszitat'])]">
+       <xsl:call-template name="footnote"></xsl:call-template>
+   </xsl:template> -->
+
+
+    <!-- Versionshistorie -->
+    <xsl:template match="tei:TEI//tei:teiHeader/tei:revisionDesc">
+    <xsl:text>HELLO!</xsl:text>
+    <xsl:choose>
+        <xsl:when test=".">
+            <xsl:element name="div"><xsl:attribute name="id">versionsbox</xsl:attribute>
+                <xsl:for-each select="tei:change">
+                    <xsl:element name="h3"><xsl:text>Version </xsl:text><xsl:value-of select="@n"/><xsl:text> (</xsl:text><xsl:value-of select="@when"/><xsl:text>)</xsl:text></xsl:element>
+                    <xsl:element name="p">
+                        <xsl:value-of select="tei:p"/>
+                    </xsl:element>
+                </xsl:for-each>
+            </xsl:element>    
+        </xsl:when>
+    </xsl:choose>
+</xsl:template>
+
+    <xsl:template match="tei:argument">
+                <xsl:choose>
+                <xsl:when test="@xml:lang = 'de'">
+                <div id="abstract_de" class="abstract">
+                    <h1>Abstract</h1>
+
+                    <xsl:apply-templates/>
+                </div>
+            </xsl:when>
+            <xsl:when test="@xml:lang = 'en'">
+                <hr class="one"/>
+                <div id="abstract_en" class="abstract">
+                    <!--        <h1>Abstract (englisch)</h1> -->
+
+                    <xsl:apply-templates/>
+                </div>
+                
+                <!-- Versionshistorie -->
+                <hr class="one"/>
+                <xsl:for-each select="/tei:TEI//tei:teiHeader/tei:revisionDesc">
+                    <xsl:if test="tei:change[@status='published']">
+                    <xsl:element name="div"><xsl:attribute name="id">versionsbox</xsl:attribute>
+                        <xsl:for-each select="tei:change">
+                            <xsl:element name="h3"><xsl:text>Version </xsl:text><xsl:value-of select="@n"/><xsl:text> (</xsl:text><xsl:value-of select="substring(@when,9)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(@when,6,2)"/><xsl:text>.</xsl:text><xsl:value-of select="substring(@when,1,4)"/><xsl:text>)</xsl:text></xsl:element>
+                            <xsl:element name="p">
+                                <xsl:value-of select="tei:p"/>
+                            </xsl:element>
+                        </xsl:for-each>
+                    </xsl:element>  
+                    </xsl:if>
+                </xsl:for-each>
+     
+                
+
+                <!-- Inhaltsuebersicht -->
+
+                <div id="headings">
+                    <br/>
+                    <br/>
+                    <hr class="two"/>
+                    <br/>
+                    <ul>
+                        <!-- MB 12.11.21 als geschachtelte Liste angelegt -->
+                        <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+                            <xsl:if test="parent::tei:div[@type='chapter']">
+                                <li>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>#hd</xsl:text>
+                                            <xsl:number level="any"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="."/>
+                                    </a>
+                                    <xsl:apply-templates select="../tei:argument/tei:p">
+                                        <xsl:with-param name="caption">true</xsl:with-param>
+                                    </xsl:apply-templates>
+                                </li>                                      
+                            </xsl:if>    
+                            
+                            
+                            <xsl:if test="parent::tei:div[@type='bibliography']">
+                                <li>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>#hd</xsl:text>
+                                            <xsl:number level="any"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="."/>
+                                    </a>
+                                    <xsl:apply-templates select="../tei:argument/tei:p">
+                                        <xsl:with-param name="caption">true</xsl:with-param>
+                                    </xsl:apply-templates>
+                                </li>   
+                            </xsl:if>
+                            
+                            <xsl:if test="parent::tei:div[@type='bibliography2']">
+                                <li>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>#hd</xsl:text>
+                                            <xsl:number level="any"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="."/>
+                                    </a>
+                                    <xsl:apply-templates select="../tei:argument/tei:p">
+                                        <xsl:with-param name="caption">true</xsl:with-param>
+                                    </xsl:apply-templates>
+                                </li>   
+                            </xsl:if>
+                            
+                            <xsl:if test="parent::tei:div[@type='bibliography3']">
+                                <li>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>#hd</xsl:text>
+                                            <xsl:number level="any"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="."/>
+                                    </a>
+                                    <xsl:apply-templates select="../tei:argument/tei:p">
+                                        <xsl:with-param name="caption">true</xsl:with-param>
+                                    </xsl:apply-templates>
+                                </li>   
+                            </xsl:if>
+                            
+                            <xsl:if test="parent::tei:div[@type='bibliography4']">
+                                <li>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>#hd</xsl:text>
+                                            <xsl:number level="any"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="."/>
+                                    </a>
+                                    <xsl:apply-templates select="../tei:argument/tei:p">
+                                        <xsl:with-param name="caption">true</xsl:with-param>
+                                    </xsl:apply-templates>
+                                </li>   
+                            </xsl:if>
+                            
+                            <xsl:if test="parent::tei:div[@type='abbildungsnachweis']">
+                                <li>
+                                    <a>
+                                        <xsl:attribute name="href">
+                                            <xsl:text>#hd</xsl:text>
+                                            <xsl:number level="any"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="."/>
+                                    </a>
+                                    <xsl:apply-templates select="../tei:argument/tei:p">
+                                        <xsl:with-param name="caption">true</xsl:with-param>
+                                    </xsl:apply-templates>
+                                </li>   
+                            </xsl:if>
+                            
+                            <xsl:if test="parent::tei:div[@type='subchapter']">
+                                <!--<ul>-->
+                                    <li>
+                                        <a>
+                                            <xsl:attribute name="href">
+                                                <xsl:text>#hd</xsl:text>
+                                                <xsl:number level="any"/>
+                                            </xsl:attribute>
+                                            <xsl:value-of select="."/>
+                                        </a>
+                                        <xsl:apply-templates select="../tei:argument/tei:p">
+                                            <xsl:with-param name="caption">true</xsl:with-param>
+                                        </xsl:apply-templates>
+                                    </li>      
+                                <!--</ul>-->
+                            </xsl:if>
+                        </xsl:for-each> 
+                        <!--<xsl:apply-templates/>-->
+                                            </ul>
+                </div>
+                
+                
+                
+                
+                <br/>
+            </xsl:when>
+                </xsl:choose>
+    </xsl:template>
+
+
+    <xsl:template match="tei:head">
+        <a>
+            <xsl:attribute name="name">
+                <xsl:text>hd</xsl:text>
+                <xsl:number level="any"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+        <xsl:choose>
+            <xsl:when test="parent::tei:div[@type = 'subchapter']">
+                <h3>
+                    <div style="position:relative;width:90%;">
+                        <xsl:apply-templates/>
+                    </div>
+                </h3>
+            </xsl:when>
+            <xsl:when test="parent::tei:table">
+                <th class="tabhead">
+
+                        <xsl:apply-templates/>
+                    
+                </th>
+            </xsl:when>
+            
+            <xsl:otherwise>
+
+                <h2>
+                    <div style="position:relative;width:90%;">
+                        <xsl:apply-templates/>
+                    </div>
+                </h2>
+
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+
+
+    <!-- closer -->
+    <xsl:template match="tei:closer">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- closer -->
+    <xsl:template match="tei:opener">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- closer -->
+    <xsl:template match="tei:salute">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- Namen -->
+    <xsl:template match="tei:name">
+        <xsl:apply-templates/>
+    </xsl:template>
+    <!-- Datum -->
+    <xsl:template match="tei:dateline">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="tei:date">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <!-- index  erst mal auslassen-->
+    <xsl:template match="tei:index"> </xsl:template>
+
+    <!--  Anker fuer Spruenge im Text -->
+    <xsl:template match="tei:anchor">
+        <a>
+            <xsl:attribute name="name">
+                <xsl:value-of select="@xml:id"/>
+            </xsl:attribute>
+            <xsl:text> </xsl:text>
+        </a>
+    </xsl:template>
+
+    <!--  Textkritik -->
+
+    <xsl:template match="tei:app">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="tei:rdg">
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:template match="tei:l">
+        <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+<xsl:for-each select=".">
+        <xsl:apply-templates/><br/>
+</xsl:for-each>
+    </xsl:template>
+
+    <xsl:template match="tei:quote">
+        <xsl:choose><xsl:when test="preceding-sibling::tei:note">
+            <xsl:text> &#187;</xsl:text>
+            <xsl:apply-templates/>
+            <xsl:text>&#171;</xsl:text>  
+        </xsl:when>
+            <xsl:when test="@type='motto'">
+                <xsl:apply-templates/></xsl:when>
+            <xsl:otherwise> <xsl:text>&#187;</xsl:text>
+                <xsl:apply-templates/>
+                <xsl:text>&#171;</xsl:text></xsl:otherwise></xsl:choose>  
+    </xsl:template>
+
+<xsl:template match="tei:emph">
+    <xsl:apply-templates></xsl:apply-templates>
+</xsl:template>
+
+    <xsl:template match="tei:term">
+        <xsl:choose>
+            <xsl:when test="@type='dh'">
+                <span style="color:#035151"><i><xsl:apply-templates></xsl:apply-templates></i></span>
+            </xsl:when>
+ <!-- ergänzt 13.11.2020 HFS -->         
+            
+                <xsl:when test="@type='figure'">
+                    <span style="color:#585858"><xsl:apply-templates></xsl:apply-templates></span>
+                </xsl:when>
+            <xsl:when test="@type='name'">
+                <span style="letter-spacing:0.1em"><xsl:apply-templates></xsl:apply-templates></span>
+            </xsl:when>
+                <xsl:otherwise>
+                    <xsl:apply-templates></xsl:apply-templates>
+                </xsl:otherwise>
+        </xsl:choose>
+  
+    </xsl:template>
+
+<xsl:template match="tei:rendition"></xsl:template>
+
+    <xsl:template match="tei:hi |  tei:rs/tei:hi">
+        <xsl:if test="@xml:id[starts-with(., 'org') or starts-with(., 'ue')]">
+            <a>
+                <xsl:attribute name="name">
+                    <xsl:value-of select="@xml:id"/>
+                </xsl:attribute>
+                <xsl:text> </xsl:text>
+            </a>
+        </xsl:if>
+        <xsl:choose>
+            <xsl:when test="@rend = 'italics' or @rend = 'italic'">
+                <i>
+                    <xsl:apply-templates/>
+                </i>
+            </xsl:when>
+            <xsl:when test="@rend = 'bold'">
+                <b>
+                    <xsl:apply-templates/>
+                </b>
+            </xsl:when>
+            <xsl:when test="@rendition = 'super'">
+                <sup>
+                    <xsl:apply-templates/>
+                </sup>
+            </xsl:when>
+            <xsl:when test="@rendition = 'sub'">
+                <sub>
+                    <xsl:apply-templates/>
+                </sub>
+            </xsl:when>
+            <xsl:when test="@rend = 'sub'">
+                <sub>
+                    <xsl:apply-templates/>
+                </sub>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:apply-templates/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+<!--  ++++++++++++++ MB 24. Juni 2020: durch Template aus dem Skript "zfdg_absatzzählung.xsl ergänzt +++++++++++++++++++++++++
+        
+    <xsl:template match="tei:p | tei:seg | tei:lg">
+        <xsl:choose>
+            <xsl:when test="./tei:quote[@type = 'grosszitat']">
+                <xsl:element name="p">
+                    <span class="grosszitat">
+                        <xsl:apply-templates/>
+                    </span>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="./tei:quote[@type = 'motto']">
+                <xsl:element name="p">
+                    <span class="motto">
+                        <xsl:apply-templates/>
+                    </span>
+                </xsl:element>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:element name="p">
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+    -->
+    
+    <!-- ergänztes Template -->
+    
+   <!--<xsl:template match="tei:p | tei:seg | tei:lg">
+        <xsl:choose>
+            <xsl:when test="./tei:quote[@type = 'grosszitat']">
+                <xsl:element name="p">
+                    <span class="grosszitat">
+                        <xsl:apply-templates/>
+                    </span>
+                </xsl:element>
+            </xsl:when>
+            <!-\-<xsl:when test="@rendition">                
+                <p style="text-align: right; margin-left: 20%; margin-top: 5px; font-style: italic; hyphens: auto;
+                    -moz-text-align-last: right; text-align-last: right;">
+                        <xsl:apply-templates/>
+                    </p>                
+            </xsl:when>-\->
+            <xsl:when test="parent::tei:div[@type = 'chapter'] | parent::tei:div[@type = 'subchapter']">
+                <xsl:element name="p">                    
+                    <xsl:attribute name="id"><xsl:text>pid</xsl:text><xsl:number count="tei:p | tei:quote[@type='grosszitat']" format="1"
+                        from="tei:div[@type = 'chapter'][1]" level="any"/></xsl:attribute>
+                                     
+                    <span style="float: right; padding: .2em; color: #999; border: 1px solid #ccc; background-color: #eee; margin-right: -80px;">
+                        <xsl:text>[</xsl:text><xsl:element name="a">
+                            <xsl:attribute name="href"><xsl:text>#pid</xsl:text>
+                                <xsl:number count="tei:p | tei:quote[@type='grosszitat']" format="1"
+                                    from="tei:div[@type = 'chapter'][1]" level="any"/></xsl:attribute>
+                            <xsl:number count="tei:p  | tei:quote[@type='grosszitat']" format="1"
+                                from="tei:div[@type = 'chapter'][1]" level="any"/>
+                        </xsl:element>
+                        <xsl:text>]</xsl:text>
+                    </span>
+                    <xsl:if test="@rendition='motto'">
+                        <span style="text-align: right; margin-left: 20%; margin-top: 5px; font-style: italic; hyphens: auto;
+                        -moz-text-align-last: right; text-align-last: right;">                    
+                    <xsl:apply-templates select="tei:p[@rendition='motto']"/>
+                        </span>
+                    </xsl:if>                
+                    <xsl:apply-templates/>
+                </xsl:element>                
+            </xsl:when>
+            <xsl:when test="@rendition='motto'">
+                <xsl:element name="p">
+                    <span class="motto">
+                        <xsl:text>&#187;</xsl:text>
+                        <xsl:apply-templates/>
+                        <xsl:text>&#171;</xsl:text>
+                    </span>
+                </xsl:element>
+            </xsl:when>
+            
+            <xsl:when test="ancestor::tei:div[@type='abstract']">
+                <xsl:element name="p">
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:when>
+            
+            <xsl:otherwise>
+                <xsl:element name="p">
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+        
+    </xsl:template>-->
+    <xsl:template match="tei:seg[@type='ex']">
+        <span class="ex" style="margin-left: 25px; display: block;">
+            <xsl:apply-templates/>
+        </span>
+        
+    </xsl:template>
+    
+    <!-- Ersetzt aus  Skript Sonderband 5 -->
+    <xsl:template match="tei:p | tei:seg | tei:lg">
+        <xsl:choose>
+            <xsl:when test="./tei:quote[@type = 'grosszitat']">
+                <xsl:element name="p">
+                    <span class="grosszitat">
+                        <xsl:apply-templates/>
+                    </span>
+                </xsl:element>
+            </xsl:when>
+            
+            
+            
+            <xsl:when test="parent::tei:div[@type = 'chapter'] | parent::tei:div[@type = 'subchapter']">
+                <xsl:element name="p">                    
+                    <xsl:attribute name="id"><xsl:text>pid</xsl:text><xsl:number count="tei:p" format="1"
+                        from="tei:div[@type = 'chapter'][1]" level="any"/></xsl:attribute>
+                    
+                    <span style="float: right; padding: .2em; color: #999; border: 1px solid #ccc; background-color: #eee; margin-right: -80px;">
+                        <xsl:text>[</xsl:text><xsl:element name="a">
+                            <xsl:attribute name="href"><xsl:text>#pid</xsl:text>
+                                <xsl:number count="tei:p" format="1"
+                                    from="tei:div[@type = 'chapter'][1]" level="any"/></xsl:attribute>
+                            <xsl:number count="tei:p" format="1"
+                                from="tei:div[@type = 'chapter'][1]" level="any"/>
+                        </xsl:element>
+                        <xsl:text>]</xsl:text>
+                    </span>
+                    <xsl:if test="@rendition='motto'">
+                        <span style="text-align: right; margin-left: 20%; margin-top: 5px; font-style: italic; hyphens: auto;
+                            -moz-text-align-last: right; text-align-last: right;">                    
+                            <xsl:apply-templates select="tei:p[@rendition='motto']"/>
+                        </span>
+                    </xsl:if>   
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="@rendition='motto'">
+                <xsl:element name="p">
+                    <span class="motto">
+                        <xsl:text>&#187;</xsl:text>
+                        <xsl:apply-templates/>
+                        <xsl:text>&#171;</xsl:text>
+                    </span>
+                </xsl:element>
+            </xsl:when>
+            <!--<xsl:when test="./tei:quote[@type = 'motto']">
+                <xsl:element name="p">
+                    <span class="motto">
+                        <xsl:apply-templates/>
+                    </span>
+                </xsl:element>
+            </xsl:when>-->
+            <xsl:when test="ancestor::tei:div[@type='abstract']">
+                <xsl:element name="p">
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:when>
+           <!-- <xsl:otherwise>
+                <xsl:element name="p">
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:otherwise>-->
+        </xsl:choose>
+        
+    </xsl:template>
+    
+    
+    <!-- Ergänzung Th. Stäcker (2021-08-27) -->
+    <xsl:template match="tei:soCalled">
+        <i>
+            <xsl:apply-templates/>
+        </i>
+    </xsl:template>
+
+    <xsl:template match="tei:bibl/tei:ref">
+        <a>
+            <xsl:attribute name="href">
+                <xsl:value-of select="@target"/>
+            </xsl:attribute>
+            <xsl:attribute name="target">_blank</xsl:attribute>
+            <xsl:apply-templates/>
+        </a>
+
+    </xsl:template>
+
+
+    <xsl:template match="tei:bibl/tei:title">
+       <xsl:choose>
+           <xsl:when test="@type='desc'">
+               <i><xsl:apply-templates></xsl:apply-templates></i>
+           </xsl:when>
+       </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:graphic">
+
+        <div class="medium">
+            <div class="field-item even" rel="og:image rdfs:seeAlso" resource="../medium1">
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="$img"/>
+                        <xsl:value-of select="substring-after(@url, 'medien/')"/>
+                        <!-- <xsl:text>.../medien1/</xsl:text><xsl:value-of select="substring-after(@url, '.../medien')"/> -->
+                    </xsl:attribute>
+                    <xsl:attribute name="title">
+                        <xsl:value-of select="normalize-space(tei:desc)"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="rel">
+                        <xsl:text>gallery-node</xsl:text>
+                    </xsl:attribute>
+                    <xsl:attribute name="class">
+                        <xsl:text>colorbox</xsl:text>
+                    </xsl:attribute>
+                    <img style="max-height:450px!important" class="artikel">
+                        <xsl:attribute name="alt">
+                            <xsl:value-of select="tei:desc"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="src">
+                            <xsl:value-of select="$img2"/>
+                            <xsl:value-of select="substring-after(@url, 'medien/')"/>
+                        </xsl:attribute>
+                        <xsl:text/>
+                    </img>
+                </a>
+            </div>
+            <div class="img_desc">
+                <xsl:apply-templates select="tei:desc"/>
+            </div>
+        </div>
+
+
+    </xsl:template>
+
+    <xsl:template match="tei:media">
+        <xsl:choose>
+            <xsl:when test="@type = 'svg'">
+                <div class="medium">
+                    <object width="900" height="450">
+                        <!--  <xsl:attribute name="alt">
+                            <xsl:value-of select="tei:desc"/>
+                        </xsl:attribute>-->
+                        <xsl:attribute name="id">
+                            <xsl:value-of select="@xml:id"/>
+                        </xsl:attribute>
+                        <xsl:attribute name="data">
+                            <xsl:value-of select="$img"/>
+                            <xsl:value-of select="substring-after(@url, 'medien/')"/>
+                        </xsl:attribute>
+                        <xsl:text/>
+                        <xsl:attribute name="type">image/svg+xml</xsl:attribute>
+                    </object>
+                </div>
+                <div class="img_desc">
+                    <xsl:apply-templates select="tei:desc"/>
+                </div>
+            </xsl:when>
+        </xsl:choose>
+
+    </xsl:template>
+
+    <xsl:template match="tei:ref[parent::tei:desc]">
+        <xsl:choose>
+            <xsl:when test="@type = 'extern'">
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="target">
+                        <xsl:text>_blank</xsl:text>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>
+            </xsl:when>           
+            <xsl:otherwise>               
+                <a>
+                    <xsl:attribute name="href">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </a>                
+            </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+
+    
+    <!-- altes Template für tei:code MB, 1.9.2020, ersetzt durch: s.u. -->
+    <!--<xsl:template match="tei:code">
+        <xsl:element name="span">
+            <xsl:attribute name="class">code</xsl:attribute>
+            <xsl:apply-templates/>
+        </xsl:element>
+    </xsl:template>-->
+    
+    <xsl:template match="tei:code">
+        <xsl:text>&#xA;</xsl:text>
+        <xsl:element name="code">
+            <xsl:attribute name="style">background-color:#fafafa; color: black;</xsl:attribute>
+            <xsl:apply-templates/>
+            </xsl:element>        
+    </xsl:template>
+    
+    <xsl:template match="tei:eg">
+        <xsl:element name="pre">
+            <xsl:apply-templates/>
+        </xsl:element>
+    </xsl:template>
+
+    <xsl:template match="tei:table">
+        <hr class="one"/>     
+        <div class="medium">
+        <xsl:element name="table">
+            <xsl:attribute name="style">border: 1px; rules: all; border-style: solid; border-color: #696969; font-size: 12px; line-height: 1.5;</xsl:attribute>
+            <xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute>
+            <xsl:if test="tei:head">
+               <xsl:apply-templates select="tei:head[1]"></xsl:apply-templates>  
+                <xsl:apply-templates select="tei:head[2]"></xsl:apply-templates>
+                <xsl:apply-templates select="tei:head[3]"></xsl:apply-templates>  
+                <xsl:apply-templates select="tei:head[4]"></xsl:apply-templates>  
+                <xsl:apply-templates select="tei:head[5]"></xsl:apply-templates>  
+            </xsl:if>
+            
+            <xsl:for-each select="tei:row">
+                <xsl:element name="tr">
+                 <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:for-each>
+        </xsl:element>
+        <hr class="one"/>
+       <!-- <xsl:element name="br"/>-->
+        <xsl:if test="tei:trailer[1]">
+            <span class="img_desc">
+                <xsl:attribute name="id"><xsl:value-of select="tei:trailer[1]/@xml:id"/></xsl:attribute>
+                <xsl:apply-templates select="tei:trailer[1]"></xsl:apply-templates></span><br/>
+        </xsl:if>
+    </div>
+    </xsl:template>
+
+<xsl:template match="tei:lb">
+    <br/>
+</xsl:template>
+
+
+<xsl:template match="tei:cell">
+   <xsl:choose>
+       <xsl:when test="ancestor::tei:row[@label='label']">
+           <th><xsl:apply-templates/></th>
+       </xsl:when>      
+       <xsl:otherwise>
+           <td style="padding-top: 10px; padding-bottom: 10px; padding-right: 10px; padding-left: 5px; border: 1px; rules: all; border-style: solid; border-color: #696969">
+               <xsl:apply-templates select="@cols, @rows"/>
+               <xsl:apply-templates/>
+           </td>
+       </xsl:otherwise>
+   </xsl:choose>              
+</xsl:template>
+    
+    <xsl:template match="@cols">
+        <xsl:attribute name="colspan" select=".">            
+        </xsl:attribute>
+    </xsl:template>
+    
+    <xsl:template match="@rows">
+        <xsl:attribute name="rowspan" select=".">            
+        </xsl:attribute>
+    </xsl:template>
+    
+    <xsl:template match="tei:cell/tei:p">
+        <span><xsl:apply-templates/></span>
+    </xsl:template>
+    
+<!-- Abbildungszählung -->
+    <xsl:template match="tei:desc[@type = 'graphic']">
+
+        <ul class="abbildung">
+            <xsl:for-each select=".">
+                <xsl:element name="li">
+                    <xsl:attribute name="id">
+                        <xsl:value-of select="@xml:id"/>
+                    </xsl:attribute>
+                    <a>
+                        <xsl:attribute name="href">
+                            <xsl:value-of select="tei:ref[@type = 'graphic']/@target"/>
+                        </xsl:attribute>
+                        <xsl:text>Abb. </xsl:text><xsl:number count="tei:desc[@type='graphic']"></xsl:number>
+                    </a><xsl:text>: </xsl:text>
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:for-each>
+        </ul>
+    </xsl:template>
+    
+    
+    <!-- Tabellenzählung -->
+    <xsl:template match="tei:desc[@type = 'table']">
+        
+        <ul class="tabelle">
+            <xsl:for-each select=".">
+                <xsl:element name="li">
+                    <xsl:attribute name="id">
+                        <xsl:value-of select="@xml:id"/>
+                    </xsl:attribute>
+                    <!--<a>
+                        <xsl:attribute name="href">
+                            <xsl:value-of select="tei:ref[@type = 'intern']/@target"/>
+                        </xsl:attribute>
+                        <xsl:text>Tab. </xsl:text><xsl:number count="tei:desc[@type='table']"></xsl:number>
+                    </a>-->
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:for-each>
+        </ul>
+    </xsl:template>
+
+
+
+    <!--<xsl:template match="tei:div[@type = 'chapter'] | tei:div[@type = 'subchapter']">
+        <xsl:element name="div">
+            <xsl:attribute name="id">
+                <xsl:value-of select="@type"/>
+            </xsl:attribute>
+            <xsl:apply-templates/>
+        </xsl:element>
+    </xsl:template>-->
+</xsl:stylesheet>
diff --git a/skripte/2022/transformation_pdf.xsl b/skripte/2022/transformation_pdf.xsl
new file mode 100644
index 0000000000000000000000000000000000000000..096359854bfd097be853aff63ff54f57e74210b5
--- /dev/null
+++ b/skripte/2022/transformation_pdf.xsl
@@ -0,0 +1,1463 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0" xmlns:tei="http://www.tei-c.org/ns/1.0"
+    xmlns:mets="http://www.loc.gov/METS/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:fo="http://www.w3.org/1999/XSL/Format"
+    xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"
+    xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
+
+
+    <xsl:output indent="yes" encoding="utf-8"/>
+
+
+    <!-- *****************************************************
+** Globale Parameter
+***************************************************** -->
+
+    <xsl:param name="dir"/>
+
+    <!-- Seitenbreite, -hoehe 
+    <xsl:param name="Seitenbreite">165mm</xsl:param>
+    <xsl:param name="Seitenhoehe">240mm</xsl:param>-->
+    <xsl:param name="Seitenbreite">210mm</xsl:param>
+    <xsl:param name="Seitenhoehe">297mm</xsl:param>
+    <!-- Raender: oben rechts unten links -->
+    <xsl:param name="Raender-rechte-Seiten">9mm 7mm 18mm 18mm</xsl:param>
+    <xsl:param name="Raender-linke-Seiten">9mm 18mm 18mm 7mm</xsl:param>
+    <xsl:param name="Innenraender-rechte-Seiten">22mm 30mm 0mm 0mm</xsl:param>
+    <xsl:param name="Innenraender-linke-Seiten">22mm 0mm 0mm 30mm</xsl:param>
+    <!-- Typografie -->
+    <xsl:param name="Schriftname">Arial</xsl:param>
+    <xsl:param name="Schriftgroesse">10pt</xsl:param>
+    <xsl:param name="Zeilenhoehe">12pt</xsl:param>
+    <xsl:variable name="gbv">
+        <xsl:text>http://gso.gbv.de/DB=2.1/PPN?PPN=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="opac">
+        <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/PPN?PPN=</xsl:text>
+    </xsl:variable>
+
+
+
+    <!-- *****************************************************
+** Templates
+***************************************************** -->
+
+
+    <xsl:template match="/">
+        <fo:root>
+
+            <fo:layout-master-set>
+
+                <!--    <fo:simple-page-master master-name="title" page-height="{$Seitenhoehe}"
+                    page-width="{$Seitenbreite}" margin-top="10mm" margin-left="15mm"
+                    margin-bottom="10mm" margin-right="15mm">
+                    <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm"
+                        margin-right="5mm"> </fo:region-body>
+                    <fo:region-before extent="0mm"/>
+                    <fo:region-after extent="0mm"/>                    
+                </fo:simple-page-master> -->
+                <fo:simple-page-master master-name="titel" page-height="{$Seitenhoehe}"
+                    page-width="{$Seitenbreite}" margin-top="10mm" margin-left="15mm"
+                    margin-bottom="10mm" margin-right="15mm">
+                    <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm"
+                        margin-right="5mm"> </fo:region-body>
+                    <fo:region-before extent="0mm"/>
+                    <fo:region-after extent="0mm"/>
+
+                </fo:simple-page-master>
+                <fo:simple-page-master master-name="standard" page-height="{$Seitenhoehe}"
+                    page-width="{$Seitenbreite}" margin-top="10mm" margin-left="15mm"
+                    margin-bottom="10mm" margin-right="15mm">
+                    <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm"
+                        margin-right="5mm"> </fo:region-body>
+                    <fo:region-before extent="0mm"/>
+                    <fo:region-after extent="0mm"/>
+
+                </fo:simple-page-master>
+
+                <!-- <fo:page-sequence-master master-name="content">
+                    <fo:repeatable-page-master-alternatives>
+                        <fo:conditional-page-master-reference                  
+                            master-reference="titel"
+                            page-position="first" odd-or-even="odd"/>
+                    </fo:repeatable-page-master-alternatives>
+                    </fo:page-sequence-master>-->
+            </fo:layout-master-set>
+            <fo:bookmark-tree>
+                <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+                    <fo:bookmark internal-destination="{generate-id()}">
+                        <fo:bookmark-title>
+                            <xsl:value-of select="."/>
+                        </fo:bookmark-title>
+                    </fo:bookmark>
+                </xsl:for-each>
+            </fo:bookmark-tree>
+
+
+
+
+            <fo:page-sequence master-reference="titel" force-page-count="no-force">
+
+                <fo:flow flow-name="xsl-region-body"
+                    font-family="Open Sans, helvetica, arial, sans-serif" font-size="10px"
+                    line-height="1.5em">
+                    <fo:block margin-left="-9%" width="25px" max-width="50px">
+                        <fo:external-graphic
+                            src="https://zfdg.de/sites/default/files/logo-zfdg_02.png"/>
+                    </fo:block>
+                    <fo:block padding-before="10px" font-size="18px">
+                        <xsl:text>Zeitschrift für digitale Geisteswissenschaften</xsl:text>
+                    </fo:block>
+                    <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+                        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/>
+                    <fo:block padding-before="10px" font-size="12px">
+                        <xsl:text>Artikel aus:</xsl:text>
+                    </fo:block>
+                    <fo:block font-size="12px" font-family="Open Sans, helvetica, arial, sans-serif"
+                        >Zeitschrift für digitale Geisteswissenschaften </fo:block>
+                    <fo:block padding-before="10px" font-size="12px">
+                        <xsl:text>Titel:</xsl:text>
+                    </fo:block>
+                    <fo:block font-size="12px" font-family="Open Sans, helvetica, arial, sans-serif">
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"/>
+                        <!--      <xsl:text>. Artikel aus: Sonderband 1 der ZfdG: Grenzen und Möglichkeiten der Digital Humanities. Hg. von Constanze Baum und Thomas Stäcker. 2015. DOI: </xsl:text>
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>https://doi.org/</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                            />
+                        </fo:basic-link>-->
+
+                    </fo:block>
+                    <fo:block>
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]">
+                            <fo:leader leader-length="25%" rule-thickness="0.5pt"
+                                leader-pattern="rule"/>
+                        </xsl:if>
+                    </fo:block>
+                    <xsl:choose>
+                        <xsl:when
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]">
+
+                            <xsl:for-each
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt">
+                                <fo:block font-size="12px" padding-before="10px">
+                                    <fo:block>
+                                        <xsl:text>Autor/in:</xsl:text>
+                                    </fo:block>
+                                    <fo:inline>
+                                        <xsl:value-of
+                                            select="tei:resp/tei:persName/tei:name/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:value-of
+                                            select="tei:resp/tei:persName/tei:name/tei:surname"/>
+                                    </fo:inline>
+                                </fo:block>
+                                <fo:block font-size="12px" padding-before="10px">
+
+                                    <xsl:text>Kontakt: </xsl:text>
+
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>mailto:</xsl:text>
+                                            <xsl:value-of select="tei:resp/tei:persName/tei:email"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="tei:resp/tei:persName/tei:email"/>
+                                    </fo:basic-link>
+                                </fo:block>
+                                <fo:block font-size="12px">
+                                    <xsl:text>Institution: </xsl:text>
+                                    <xsl:choose>
+                                        <xsl:when test="tei:affiliation and not(tei:orgName)">
+                                            <xsl:value-of select="tei:affiliation"/>        
+                                        </xsl:when>
+                                        <xsl:when test="not(tei:affiliation) and tei:orgName">
+                                            <xsl:value-of select="tei:orgName"/>        
+                                        </xsl:when>
+                                    </xsl:choose>
+                                </fo:block>
+                                <fo:block font-size="12px">
+
+                                    <xsl:text>GND: </xsl:text>
+
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>http://d-nb.info/gnd/</xsl:text>
+                                            <xsl:value-of
+                                                select="tei:resp/tei:persName/tei:idno[@type = 'gnd']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="tei:resp/tei:persName/tei:idno[@type = 'gnd']"/>
+                                    </fo:basic-link>
+
+                                    <xsl:if test="tei:resp/tei:persName/tei:idno[@type = 'orcid']">
+                                        <xsl:text> ORCID: </xsl:text>
+                                        <fo:basic-link color="#9d3a00">
+                                            <xsl:attribute name="external-destination">
+                                                <xsl:text>https://orcid.org/</xsl:text>
+                                                <xsl:value-of
+                                                  select="tei:resp/tei:persName/tei:idno[@type = 'orcid']"
+                                                />
+                                            </xsl:attribute>
+                                            <xsl:value-of
+                                                select="tei:resp/tei:persName/tei:idno[@type = 'orcid']"
+                                            />
+                                        </fo:basic-link>
+                                    </xsl:if>
+                                </fo:block>
+                                    
+                                   <!-- CREDIT Rollen -->
+                                    
+                                <fo:block font-size="12px">
+                                    <xsl:if test="tei:resp/tei:idno[@type='credit']">
+                                        <xsl:for-each select="tei:resp/tei:idno[@type='credit']">
+                                            <fo:basic-link color="#9d3a00">
+                                                <xsl:attribute name="external-destination">
+                                                    <xsl:text> Credit: </xsl:text>
+                                                    <xsl:value-of select="tei:resp/tei:idno[@corresp]"/>
+                                                </xsl:attribute>                                
+                                                <xsl:value-of select="tei:resp/tei:idno"/>
+                                            </fo:basic-link>
+                                        </xsl:for-each>
+                                    </xsl:if>                                    
+                                </fo:block>
+                                
+                                
+                                <fo:block>
+                                    <fo:leader leader-length="25%" rule-thickness="0.5pt"
+                                        leader-pattern="rule"/>
+                                </fo:block>
+
+                            </xsl:for-each>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>Autor/in:</xsl:text>
+                                </fo:block>
+                                <fo:inline>
+                                    <xsl:value-of
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                    <xsl:text> </xsl:text>
+                                    <xsl:value-of
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:surname"
+                                    />
+                                </fo:inline>
+                            </fo:block>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>Kontakt: </xsl:text>
+                                </fo:block>
+                                <fo:inline>
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination"
+                                            >../aac-fackel/aac-fackel_2015.pdf <xsl:text>mailto:</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:email"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:email"
+                                        />
+                                    </fo:basic-link>
+                                </fo:inline>
+                            </fo:block>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>Institution: </xsl:text>
+                                </fo:block>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:orgName"
+                                />
+                            </fo:block>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>GND: </xsl:text>
+                                </fo:block>
+                                <fo:basic-link color="#9d3a00">
+                                    <xsl:attribute name="external-destination">
+                                        <xsl:text>http://d-nb.info/gnd/</xsl:text>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type = 'gnd']"
+                                        />
+                                    </xsl:attribute>
+                                    <xsl:value-of
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type = 'gnd']"
+                                    />
+                                </fo:basic-link>
+                            </fo:block>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <xsl:if
+                                    test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type = 'orcid']">
+                                    <fo:block>
+                                        <xsl:text> ORCID: </xsl:text>
+                                    </fo:block>
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>https://orcid.org/</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type = 'orcid']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type = 'orcid']"
+                                        />
+                                    </fo:basic-link>
+                                </xsl:if>
+                            </fo:block>
+
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+                        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/>
+
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>DOI des Artikels: </xsl:text>
+                        </fo:block>
+
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>https://doi.org/</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                            />
+                        </fo:basic-link>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+
+                        <fo:block>
+                            <xsl:text>Nachweis im OPAC der Herzog August Bibliothek: </xsl:text>
+                        </fo:block>
+
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/XMLPRS=N/PPN?PPN=</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'ppn']"
+                            />
+                        </fo:basic-link>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>Erstveröffentlichung: </xsl:text>
+                        </fo:block>
+                        <xsl:value-of
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date"
+                        />
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+
+                        <fo:block>
+                            <xsl:text>Lizenz:</xsl:text>
+                        </fo:block>
+                        <xsl:text> Sofern nicht anders angegeben </xsl:text>
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <!--<xsl:text>http://creativecommons.org/licenses/by-sa/4.0/</xsl:text>-->
+                                <xsl:text>http://creativecommons.org/licenses/by/4.0/</xsl:text>
+                            </xsl:attribute>
+                            <xsl:element name="fo:external-graphic">
+                                <xsl:attribute name="src">
+                                    <!--<xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text>-->
+                                    <xsl:text>https://licensebuttons.net/l/by/4.0/80x15.png</xsl:text>
+                                </xsl:attribute>
+                            </xsl:element>
+                            <xsl:element name="img">
+                                <xsl:attribute name="alt">
+                                    <xsl:text>Creative Commons Lizenzvertrag</xsl:text>
+                                </xsl:attribute>
+                                <xsl:attribute name="src">
+                                    <!--<xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text>-->
+                                    <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text>
+                                </xsl:attribute>
+                            </xsl:element>
+                        </fo:basic-link>
+                    </fo:block>
+
+                    <fo:block font-size="12px" padding-before="10px">
+
+                        <fo:block>
+                            <xsl:text>Medienlizenzen: </xsl:text>
+                        </fo:block>
+
+                        <xsl:value-of
+                            select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl/tei:p[2]"/>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+
+                        <fo:block>
+                            <xsl:text>Letzte Überprüfung aller Verweise: </xsl:text>
+                        </fo:block>
+
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl//tei:date"
+                        />
+                    </fo:block>
+                    
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block><xsl:text>Format: </xsl:text></fo:block>
+                        <fo:block><xsl:text>PDF ohne Paginierung, Lesefassung</xsl:text></fo:block>
+                    </fo:block>
+                    
+                    <xsl:choose>
+                        <xsl:when
+                            test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']">
+                            <fo:block font-size="12px" padding-before="10px">
+
+
+
+                                <fo:block>
+                                    <xsl:text>GND-Verschlagwortung: </xsl:text>
+                                </fo:block>
+
+
+                                <xsl:for-each
+                                    select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'gnd']/tei:term">
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>http://d-nb.info/gnd/</xsl:text>
+                                            <xsl:value-of select="./tei:ref/@target"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="."/>
+                                    </fo:basic-link>
+                                    <xsl:text> | </xsl:text>
+                                </xsl:for-each>
+                            </fo:block>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when
+                            test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']">
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>TaDiRAH-Verschlagwortung: </xsl:text>
+                                </fo:block>
+                                <xsl:for-each
+                                    select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme = 'tadirah']/tei:term">
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>http://tadirah.dariah.eu/vocab/index.php?tema=</xsl:text>
+                                            <xsl:value-of select="./tei:ref/@target"/>
+                                        </xsl:attribute>
+
+                                        <xsl:value-of select="."/>
+                                    </fo:basic-link>
+                                    <xsl:text> | </xsl:text>
+                                </xsl:for-each>
+                            </fo:block>
+                        </xsl:when>
+
+                    </xsl:choose>
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>Zitierweise: </xsl:text>
+                        </fo:block>
+                        
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:forename"/>
+                        <xsl:text> </xsl:text>
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']/tei:surname"/>
+                        
+                        <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[position() &gt; 1]/tei:resp/tei:persName/tei:name[@role = 'marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates select="tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates select="tei:surname"/>
+                        </xsl:for-each>
+                        
+                        <xsl:text>: </xsl:text>
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title"/>
+                        <xsl:text>. In: Zeitschrift für digitale Geisteswissenschaften 7 (2022).</xsl:text>
+                        <xsl:text> </xsl:text>
+
+                        <xsl:text> HTML / XML / PDF.</xsl:text>
+                        <!-- <xsl:text>Eingesehen am: </xsl:text>
+                                    <xsl:value-of  select="$now"/>.   -->
+                        <xsl:text> Abrufbar unter DOI: </xsl:text>
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>https://doi.org/</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type = 'doi']"
+                            />
+                        </fo:basic-link>
+                        <xsl:text>.</xsl:text>
+                    </fo:block>
+                    <!--   <fo:block page-break-before="always"></fo:block>  -->
+                </fo:flow>
+
+
+            </fo:page-sequence>
+            <fo:page-sequence master-reference="standard" initial-page-number="1">
+
+                <fo:static-content flow-name="xsl-region-before">
+                    <fo:block font-family="Open Sans, helvetica, arial" font-size="6pt" padding="5pt"
+                        text-align="left">
+                        <!--<xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno"/>
+                        <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:author/tei:name"/>
+                        <xsl:text> : </xsl:text>-->
+                     <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"/>
+                        <xsl:text> | ZfdG 2022</xsl:text>
+                        <!--   <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno"/>
+                       <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/> -->
+                        <fo:block>
+                            <fo:leader leader-length="100%" rule-thickness="0.5pt" leader-pattern="rule"
+                            />
+                        </fo:block>
+                    </fo:block>
+                </fo:static-content>
+                <fo:static-content flow-name="xsl-footnote-separator">
+                    <fo:block>
+                        <fo:leader leader-length="50%" rule-thickness="0.5pt" leader-pattern="rule"
+                        />
+                    </fo:block>
+                </fo:static-content>
+
+            <!--    <fo:static-content flow-name="xsl-region-after"> -->
+                 <!--   <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt" text-align="center"><fo:leader leader-pattern="rule" leader-length="100%" rule-style="solid" rule-thickness="2pt"/>Seite <fo:page-number/> -->
+                        <!--   <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/> -->
+                    <!-- </fo:block> -->
+             <!--   </fo:static-content> -->
+
+                <fo:flow flow-name="xsl-region-body">
+
+
+                    <fo:block font-size="16px" padding-before="25px" text-align="center" font-family="Open Sans, helvetica, arial">
+                        <fo:inline>
+                          
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:surname"/>
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]">
+                                <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[position() &gt; 1]">
+                                    <xsl:text>, </xsl:text>
+                                    <xsl:value-of select="tei:resp/tei:persName/tei:name/tei:forename"/>
+                                    <xsl:text> </xsl:text>
+                                    <xsl:value-of select="tei:resp/tei:persName/tei:name/tei:surname"/>
+                                </xsl:for-each>
+                            </xsl:if> 
+                               
+                        </fo:inline>
+                    </fo:block>
+                
+                    <fo:block font-size="16px" padding-before="10px"  font-family="Open Sans, helvetica, arial" text-align="center" font-weight="bold">
+                    <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"
+                        />
+                    </fo:block>
+
+                    <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+                        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/>
+                    <fo:block font-size="10px" padding-before="10px"> </fo:block>
+
+
+                    <fo:block>
+                        <fo:block space-before="15pt" font-family="Open Sans, helvetica, arial" font-size="10pt">
+                        <xsl:text>Abstracts</xsl:text>
+                        </fo:block>
+                        <xsl:for-each select="//tei:text">
+                            <xsl:apply-templates/>
+                        </xsl:for-each>
+                    </fo:block>
+                </fo:flow>
+
+            </fo:page-sequence>
+        </fo:root>
+
+    </xsl:template>
+
+
+    <!--   <xsl:template match="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+       <fo:block id="{generate-id()}">
+           <apply-templates/>
+       </fo:block>
+   </xsl:template>
+    
+   <xsl:template match="Inhalt">
+        <fo:block font-size="18pt" font-weight="bold" text-align="center" space-after="6mm">
+            Inhaltsverzeichnis
+        </fo:block>
+        <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+            <xsl:call-template name="ivz.zeile"></xsl:call-template>
+        </xsl:for-each>
+    </xsl:template>
+   
+   <xsl:template name="ivz.zeile">
+       <fo:block text-align="justify">
+           <fo:table width="160mm">
+               <fo:table-column column-number="1" column-width="10mm">
+                   <fo:table-column column-number="2" column-width="150mm">
+                       <fo:table-body>
+                           <fo:table-row>
+                               <fo:table-cell column-number="1">
+                                   <fo:block>
+                                       <xsl:number level="single" count="/tei:TEI/tei:text/tei:body//tei:div/tei:head" format="1."/>
+                                   </fo:block>
+                               </fo:table-cell>
+                               <fo:table-cell>
+                                   <fo:table-cell column-number="2">
+                                       <fo:block>
+                                           <xsl:value-of select="tei:head"/>
+                                           <fo:inline>
+                                               <fo:leader leader-pattern="/tei:TEI/tei:text/tei:body//tei:div/tei:head">   
+                                               </fo:leader>  
+                                               <fo:page-number-citation ref-id="{generate-id()}"/>
+                                           </fo:inline>
+                                       </fo:block>
+                                   </fo:table-cell>
+                               </fo:table-cell>
+                           </fo:table-row>
+                       </fo:table-body>
+                   </fo:table-column>
+                   <fo:table-body></fo:table-body>
+               </fo:table-column>
+               <fo:table-body></fo:table-body>
+           </fo:table>
+           
+       </fo:block>
+       
+       
+   </xsl:template> -->
+    <xsl:template match="tei:head">
+        <fo:block space-before="20pt" font-size="12pt" font-weight="bold" text-align="center">
+            <xsl:attribute name="id">
+                <xsl:value-of select="concat('hd',count(preceding::tei:head)+1)"/>
+            </xsl:attribute>
+            <xsl:value-of select="."/>
+        </fo:block>
+    </xsl:template>
+    <xsl:template match="tei:eg">
+        <xsl:apply-templates></xsl:apply-templates>
+    </xsl:template>
+    
+  <xsl:template match="tei:code">
+      <xsl:choose>
+          <xsl:when test="@rend='indent1'">
+              <fo:block font-size="8pt" font-family="Courier" margin-left="5%">
+                  <xsl:apply-templates></xsl:apply-templates>
+              </fo:block>
+          </xsl:when>
+          <xsl:when test="@rend='indent2'">
+              <fo:block font-size="8pt" font-family="Courier" margin-left="10%">
+                  <xsl:apply-templates></xsl:apply-templates><br/>
+              </fo:block>
+          </xsl:when>
+          <xsl:when test="@rend='indent3'">
+              <fo:block font-size="8pt" font-family="Courier" margin-left="15%" >
+                  <xsl:apply-templates></xsl:apply-templates><br/>
+              </fo:block>
+          </xsl:when>
+          <xsl:when test="@rend='indent4'">
+              <fo:block font-size="8pt" font-family="Courier" margin-left="20%">
+                  <xsl:apply-templates></xsl:apply-templates><br/>
+              </fo:block>
+          </xsl:when>
+          <xsl:when test="preceding-sibling::tei:lb">              
+                  <fo:block><xsl:apply-templates></xsl:apply-templates></fo:block>
+              </xsl:when>
+          <xsl:otherwise><fo:inline font-size="8pt" font-family="Courier"><xsl:apply-templates/></fo:inline> 
+              <fo:inline font-size="8pt" font-family="Courier" margin-left="5%">
+              <xsl:apply-templates/><br/>
+              </fo:inline>
+          </xsl:otherwise>
+      </xsl:choose>
+  </xsl:template>
+    
+<xsl:template match="tei:seg[@type='ex']">
+    <fo:block margin-left="25px" margin-top="25px" margin-bottom="25px" space-after="10pt" font-family="Open Sans, helvetica, arial" font-size="8pt" line-height="1.5em">
+        <xsl:apply-templates/>
+    </fo:block>
+</xsl:template>
+    
+    <xsl:template match="tei:quote[@type='grosszitat']">
+       
+            <fo:block space-before="15pt"  padding-left="25px" space-after="10pt" font-family="Open Sans, helvetica, arial" border-left="2px solid #efefef"
+                font-size="8pt" line-height="1.5em">
+                <xsl:apply-templates/>
+            </fo:block>
+            
+    </xsl:template>
+
+    <xsl:template match="tei:p">
+       <xsl:choose>
+ <!-- <xsl:when test="tei:quote[@type='grosszitat']">
+            <!-\- <fo:block padding-left="25px" margin-top="25px" margin-bottom="25px" border-left="2px solid #efefef" display="block"> -\->
+            <fo:block space-before="15pt"  padding-left="25px" space-after="10pt" font-family="Open Sans, helvetica, arial" border-left="2px solid #efefef"
+                    font-size="8pt" line-height="1.5em">
+                <xsl:apply-templates/>
+            </fo:block>
+        </xsl:when>-->
+           <xsl:when test="@rendition='motto'">
+               <!-- <fo:block padding-left="25px" margin-top="25px" margin-bottom="25px" border-left="2px solid #efefef" display="block"> -->
+               <fo:block space-before="15pt"  padding-left="25px" space-after="10pt" font-family="Open Sans, helvetica, arial" border-left="2px solid #efefef"
+                   font-size="8pt" line-height="1.5em">
+                   <xsl:apply-templates/>
+               </fo:block>
+           </xsl:when>
+        <xsl:otherwise>
+        <fo:block space-before="15pt" space-after="10pt" font-family="Open Sans, helvetica, arial"
+            font-size="8pt" orphans="3"  widows="3" line-height="1.5em">
+            <xsl:apply-templates/>
+        </fo:block>
+        </xsl:otherwise>
+       </xsl:choose>
+    </xsl:template>
+    
+  <xsl:template match="tei:div[@type='abbildungsnachweis']">
+        <fo:block page-break-before="always"></fo:block> 
+        <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+        <xsl:apply-templates></xsl:apply-templates>
+    </xsl:template>
+    
+    
+<xsl:template match="tei:div[@type='bibliography']">
+     <fo:block page-break-before="always"></fo:block>
+    <fo:block id="appendix-a"/>
+   <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+    <xsl:apply-templates></xsl:apply-templates>
+    <fo:block id="appendix-b"/>
+</xsl:template>
+    
+    <xsl:template match="tei:div[@type='bibliography2']">
+     
+        <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+        <xsl:apply-templates></xsl:apply-templates>
+
+    </xsl:template>
+    
+    <xsl:template match="tei:div[@type='glossar']">
+        <fo:block page-break-before="always"></fo:block> 
+        <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+        <xsl:apply-templates></xsl:apply-templates>
+    </xsl:template>
+
+    <xsl:template match="tei:argument/tei:p">
+        <fo:block space-before="15pt" space-after="10pt" text-indent="5mm" font-family="Open Sans, helvetica, arial" line-height="0.75em">
+            <fo:inline font-size="8pt" >           
+                <xsl:apply-templates/>
+            </fo:inline>
+        </fo:block>
+    </xsl:template>
+
+    <xsl:template match="tei:pb">
+        <fo:inline font-size="10pt">
+            <xsl:text> || </xsl:text>
+            <xsl:text> [</xsl:text>
+            <xsl:choose>
+                <xsl:when test="@n">
+                    <xsl:value-of select="@n"/>
+                </xsl:when>
+            </xsl:choose>
+            <xsl:text>] </xsl:text>
+        </fo:inline>
+    </xsl:template>
+
+    <xsl:template match="tei:note">
+        <xsl:choose>
+            <xsl:when test="@type='annotation'">
+                <fo:footnote>
+                    <fo:inline font-size="75%" baseline-shift="super">
+                        <xsl:number level="single" format="a" count="tei:note[@type ='annotation']"
+                        />
+                    </fo:inline>
+                    <fo:footnote-body font-family="Open Sans, helvetica, arial" font-size="8pt" font-weight="normal"
+                        font-style="normal" text-align="justify" >
+                        <fo:block >
+                            <fo:inline font-size="75%" baseline-shift="super">
+                                <xsl:number level="single" format="a"
+                                    count="tei:note[@type ='annotation']"/>
+                            </fo:inline>
+                            <xsl:apply-templates/>
+                        </fo:block>
+                    </fo:footnote-body>
+                </fo:footnote>
+            </xsl:when>
+        </xsl:choose>
+        <xsl:choose>
+            <xsl:when test="@type='footnote'">
+                <fo:footnote>
+                    <fo:inline font-size="45%" baseline-shift="super">
+                        <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+                    </fo:inline>
+                    <fo:footnote-body font-family="Open Sans, helvetica, arial" font-size="7pt" font-weight="normal"
+                        font-style="normal" line-height="1.1em">
+                         <fo:block text-indent="0">
+                             <xsl:if test="ancestor::tei:seg[@type='ex']">
+                                 <xsl:attribute name="margin-left">-25px</xsl:attribute>
+                             </xsl:if>
+                             <fo:inline baseline-shift="super" font-size="45%" >
+                                <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+                            </fo:inline>
+                             <xsl:if test="node()[1]/self::text() and not(starts-with(.,' '))">
+                                 <xsl:text> </xsl:text>
+                             </xsl:if>
+                            <xsl:apply-templates/>
+                        </fo:block>
+                    </fo:footnote-body>
+                </fo:footnote>
+            </xsl:when>
+        </xsl:choose>
+
+        <xsl:choose>
+            <xsl:when test="@type='commentar'">
+                <fo:block space-before="15pt" space-after="10pt"
+                    font-family="Open Sans, helvetica, arial" font-size="10pt">
+                    <xsl:apply-templates/>
+                </fo:block>
+            </xsl:when>
+        </xsl:choose>
+        <!-- ENDNOTEN  
+            <xsl:choose>
+            <xsl:when test="@type='footnote'">
+                <fo:block><fo:leader leader-pattern="rule"/></fo:block> <xsl:apply-templates select="." mode="endnote"/>
+            </xsl:when>
+        </xsl:choose>-->
+        <xsl:choose>
+            <xsl:when test="@type='textapparat'">
+                <fo:block space-before="15pt" space-after="10pt"
+                    font-family="Open Sans, helvetica, arial" font-size="10pt">
+                    <xsl:apply-templates/>
+                </fo:block>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+
+<xsl:template match="tei:list">
+    <xsl:choose>
+        <xsl:when test="@type='unordered'">
+            <!-- list start -->
+            <fo:list-block>
+                <!-- list item -->
+                <xsl:for-each select="tei:item">
+                    <fo:list-item>
+                    <!-- insert a bullet -->
+                    <fo:list-item-label end-indent="label-end()">
+                        <fo:block>
+                            <fo:inline></fo:inline>
+                        </fo:block>
+                    </fo:list-item-label>
+                    <!-- list text -->
+                    <fo:list-item-body>
+                        <fo:block font-family="Open Sans, helvetica, arial"
+                            font-size="8pt" line-height="1.5em" margin-left="25px">
+                          <xsl:text>- </xsl:text><xsl:apply-templates select="."/>
+                        </fo:block>
+                    </fo:list-item-body>
+                </fo:list-item>
+                </xsl:for-each>                
+            </fo:list-block>
+            <!-- end list -->
+        </xsl:when>
+        
+        <xsl:when test="@type='gloss'">           
+          
+                    <fo:table>
+                        <fo:table-body>
+                            <xsl:for-each select="tei:label">
+                             <fo:table-row>
+                           
+                                 <fo:table-cell width="60mm" padding-top="10px"> <fo:block 
+                                     font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:term"></xsl:apply-templates></fo:block></fo:table-cell>                       
+                                 <fo:table-cell padding-top="10px"><fo:block 
+                                     font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="following-sibling::tei:item[position()=1]/tei:gloss"></xsl:apply-templates></fo:block></fo:table-cell>
+                                 
+                               
+                             </fo:table-row>
+                           
+                            </xsl:for-each>     
+                            
+                        </fo:table-body>
+                    </fo:table>
+                    
+                
+                
+            <!-- end list -->
+       
+        </xsl:when>
+        
+        <xsl:when test="@type='ordered'">
+            <!-- list start -->
+            <fo:list-block >
+                <!-- list item -->
+                <xsl:for-each select="tei:item">                <fo:list-item>
+                    <!-- insert a bullet -->
+                    <fo:list-item-label end-indent="label-end()">
+                        <fo:block>
+                            <fo:inline></fo:inline>
+                        </fo:block>
+                    </fo:list-item-label>
+                    <!-- list text -->
+                    <fo:list-item-body start-indent="body-start()">                   
+                        <fo:block font-family="Open Sans, helvetica, arial"
+                            font-size="8pt" line-height="1.5em">
+                            <xsl:number count="tei:item" format="1."/><xsl:text> </xsl:text>
+                            <xsl:apply-templates select="."></xsl:apply-templates>
+                        </fo:block>
+                    </fo:list-item-body>
+                </fo:list-item>
+                </xsl:for-each>
+            </fo:list-block>
+            <!-- end list -->
+        </xsl:when>
+    </xsl:choose>
+</xsl:template>
+
+<xsl:template match="tei:table">    
+    <fo:table id="{tei:trailer/@xml:id}">
+        <fo:table-footer>
+            <fo:table-row>
+                <!-- Breite des Trailers auf Tabelle anpassen mit Attributwert, beeinflusst auch insgesamt die Tabellenbreite -->
+                <fo:table-cell number-columns-spanned="4">
+                    <fo:block padding-before="15px" padding-after="20px" font-family="Open Sans, helvetica, arial"
+                        font-size="7pt" orphans="3" line-height="1.0em">
+                        <xsl:apply-templates select="tei:trailer"/>
+                    </fo:block>
+                   
+                </fo:table-cell>
+            </fo:table-row>
+        </fo:table-footer>
+        
+        <fo:table-body>
+                        <xsl:for-each select="tei:row">
+                <fo:table-row>
+                    <xsl:for-each select="tei:cell">                        
+                    <fo:table-cell  padding-top="10px" padding-left="3px" padding-right="3px" border-style="solid" border-width="0.5pt" background="grey"> 
+                        
+                        <xsl:if test="@cols">
+                            <xsl:attribute name="number-columns-spanned">
+                                <xsl:value-of select="@cols"/>
+                            </xsl:attribute>
+                        </xsl:if>
+                        <xsl:if test="@rows">
+                            <xsl:attribute name="number-rows-spanned">
+                                <xsl:value-of select="@rows"/>
+                            </xsl:attribute>
+                        </xsl:if>
+                        
+                        <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt">
+                            <xsl:apply-templates select="."/>                                
+                            </fo:block>
+                    </fo:table-cell>                        
+                        <!-- auskommentiert MB 11.5.21 -->
+                   <!-- <fo:table-cell width="50mm" padding-top="10px" border-style="solid" border-width="0.5pt"> <fo:block 
+                        font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:cell[1]"></xsl:apply-templates></fo:block></fo:table-cell>                       
+                    <fo:table-cell width="50mm" padding-top="10px" border-style="solid" border-width="0.5pt"><fo:block 
+                        font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:cell[2]"></xsl:apply-templates></fo:block></fo:table-cell>-->
+                        
+                    </xsl:for-each>
+                </fo:table-row>                
+            </xsl:for-each>                  
+        </fo:table-body>
+    </fo:table>
+</xsl:template>
+    
+  <xsl:template match="tei:graphic">
+        <xsl:choose>
+            <xsl:when test="@url">
+                <fo:block id="{@xml:id}" margin-left="150px" >
+                    
+                   <fo:inline font-size="8pt"  font-family="Open Sans, helvetica, arial">
+                        <xsl:element name="fo:external-graphic">
+                            <xsl:attribute name="src">
+                                <xsl:text>https://www.zfdg.de/sites/default/files/</xsl:text><xsl:value-of select="substring-after(@url, '.../')"/>                      
+                            </xsl:attribute>
+             
+                      <xsl:attribute name="content-width">300px</xsl:attribute>
+                            <xsl:attribute name="content-height">250px</xsl:attribute>
+                  
+                           
+                            
+                        </xsl:element>
+                    </fo:inline>
+                </fo:block>
+                <xsl:for-each select="tei:desc">
+                    <fo:block space-before="15pt"
+                        space-after="10pt"
+                        padding-top="5px" line-height="1.0em" text-indent="0" page-break-before="avoid">
+                    <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                    <xsl:apply-templates select="."/>
+                    </fo:inline>
+                    </fo:block>
+                </xsl:for-each>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+
+  <xsl:template match="tei:figure/tei:media">
+        <xsl:choose>
+            <xsl:when test="@type='svg'">
+                <xsl:choose>
+            <xsl:when test="@url">         
+                <fo:block id="{@xml:id}" margin-left="150px">       
+                    <fo:inline font-size="8pt"  font-family="Open Sans, helvetica, arial">
+                        <xsl:element name="fo:external-graphic">
+                            <xsl:attribute name="src">
+                                <xsl:text>medien/</xsl:text><xsl:value-of select="substring-before(substring-after(@url, '.../medien/svg/'), '.svg')"/><xsl:text>.jpg</xsl:text>                      
+                            </xsl:attribute>                            
+                            <xsl:attribute name="content-width">300px</xsl:attribute>
+                            <xsl:attribute name="content-height">250px</xsl:attribute>
+                        </xsl:element>
+                    </fo:inline>
+                </fo:block>
+                <xsl:for-each select="tei:desc">
+                    <fo:block line-height="1.0em" text-indent="0">
+                        <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                            <xsl:apply-templates select="."/>
+                        </fo:inline>
+                    </fo:block>
+                </xsl:for-each>
+            </xsl:when>
+                </xsl:choose>
+            </xsl:when>
+            <xsl:when test="@type='video'">
+                        <xsl:for-each select="tei:desc">
+                            <fo:block line-height="1.0em" text-indent="0">
+                                <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                                    <xsl:apply-templates select="."/>
+                                </fo:inline>
+                            </fo:block>
+                        </xsl:for-each>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+<xsl:template match="tei:lg">
+    <xsl:for-each select="tei:l">
+        <fo:block line-height="1.0em" text-indent="0">
+            <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                <xsl:apply-templates select="."/>
+            </fo:inline>
+        </fo:block>
+    </xsl:for-each>
+</xsl:template>
+    
+    <!-- hinzugefügt durch MB am 4.11.20 -->
+    <xsl:template match="tei:lb">
+            <fo:block break-after="auto">
+                <xsl:apply-templates/>
+            </fo:block>          
+    </xsl:template>
+    
+    <xsl:template match="tei:milestone">
+        <fo:block page-break-before="always"></fo:block>
+    </xsl:template>
+    
+  <xsl:template match="tei:term[@type='dh']">
+      <fo:inline font-family="Open Sans, helvetica, arial,sans-serif" font-style="italic">
+          <xsl:apply-templates/>
+      </fo:inline>  
+  </xsl:template>
+    
+    <xsl:template match="tei:term[@type='figure']">
+        <fo:inline color="#585858">
+            <xsl:apply-templates/>
+        </fo:inline>  
+    </xsl:template>
+    
+    <xsl:template match="tei:ref">
+        <xsl:choose>
+            <xsl:when test="@type='bibliography'">
+                <fo:basic-link internal-destination="appendix-a" color="grey">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+            </xsl:when>
+           
+            <xsl:when test="@type='graphic'">
+                <xsl:variable name="graphic">
+                    <xsl:value-of select="substring-after(@target, '#')"/>
+                </xsl:variable>
+                <fo:basic-link internal-destination="{$graphic}" color="grey" font-family="Open Sans, helvetica, arial" line-height="1.0em">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+            </xsl:when>
+            
+            <xsl:when test="@type='table' and not(parent::tei:trailer)">
+                <xsl:variable name="table">
+                    <xsl:value-of select="substring-after(@target, '#')"/>
+                </xsl:variable>
+                <fo:basic-link internal-destination="{$table}" color="grey" font-family="Open Sans, helvetica, arial" line-height="1.0em">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+            </xsl:when>
+            
+            <xsl:when test="(@type='table' or @type='intern') and parent::tei:trailer">                
+                <fo:basic-link internal-destination="appendix-b" color="grey" font-family="Open Sans, helvetica, arial" line-height="1.0em">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+            </xsl:when>
+            
+            <xsl:when test="@type='intern' and not(parent::tei:trailer)">
+                <xsl:variable name="table">
+                    <xsl:value-of select="substring-after(@target, '#')"/>
+                </xsl:variable>
+                <fo:basic-link internal-destination="{$table}" color="grey" font-family="Open Sans, helvetica, arial" line-height="1.0em">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+            </xsl:when>
+            
+            
+            <xsl:otherwise>
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </fo:basic-link>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    <!-- hinzugefügt durch MB am 4.11.20 -->
+   <!-- <xsl:template match="tei:trailer">
+        <fo:block space-before="15pt" space-after="10pt" font-family="Open Sans, helvetica, arial"
+            font-size="8pt" orphans="3"  widows="3" line-height="1.5em">
+            <xsl:apply-templates select="."/>
+        </fo:block>
+    </xsl:template>-->
+    
+    <!--<xsl:template match="tei:trailer">
+        <xsl:choose>
+            <xsl:when test="@type='bibliography'">
+                <fo:basic-link internal-destination="appendix-a" color="grey">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+            </xsl:when>
+            <xsl:when test="@type='graphic'">
+                <xsl:variable name="graphic">
+                    <xsl:value-of select="substring-after(@target, '#')"/>
+                </xsl:variable>
+                <fo:basic-link internal-destination="{$graphic}" color="grey" font-family="Open Sans, helvetica, arial" line-height="1.0em">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+            </xsl:when>
+            <xsl:when test="@type='intern'">
+                <xsl:apply-templates/>
+            </xsl:when>
+            <xsl:otherwise>
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </fo:basic-link>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    -->
+   <!-- <xsl:template match="tei:trailer">
+                <fo:table-row>
+                <fo:table-cell width="100mm" padding-top="10px" border-style="none"> <fo:block 
+                    font-family="Open Sans, helvetica, arial" font-size="6pt"><xsl:apply-templates/></fo:block></fo:table-cell>
+                </fo:table-row>        
+            </xsl:template>-->
+
+    <xsl:template match="tei:ref[parent::tei:desc]">
+        <xsl:choose>
+            <xsl:when test="@type='extern'">
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </fo:basic-link>
+            </xsl:when>
+            
+            <xsl:when test="parent::tei:desc[@type='table']">
+                <fo:basic-link color="grey">
+                    <xsl:attribute name="internal-destination">
+                        <xsl:choose>
+                            <xsl:when test="@type='bibliography'">
+                                <xsl:text>appendix-a</xsl:text>
+                            </xsl:when>
+                            <xsl:otherwise>
+                                <xsl:value-of select="substring-after(@target,'#')"/>
+                            </xsl:otherwise>
+                        </xsl:choose>                        
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </fo:basic-link>
+            </xsl:when>
+            
+            <xsl:otherwise>
+                
+                <fo:basic-link internal-destination="appendix-b" color="grey">
+                 <xsl:value-of select="."/>                
+                </fo:basic-link>
+                
+            </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+    
+    <xsl:template match="tei:cell/tei:p">
+        <span><xsl:apply-templates/></span>
+    </xsl:template>
+
+    <xsl:template match="tei:hi">
+        <xsl:choose>
+            <xsl:when test="@rend ='italics' or @rend ='italic'">
+                    <fo:inline font-family="Open Sans, helvetica, arial,sans-serif" font-style="italic">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:when test="@rend='latin'">
+                <span style="font-family:junicode"><xsl:apply-templates></xsl:apply-templates></span>
+            </xsl:when>
+            <xsl:when test="@rend ='sans_serif'">
+                <fo:inline font-family="Open Sans, helvetica, arial,sans-serif;"><xsl:apply-templates/></fo:inline>
+            </xsl:when>
+        <xsl:when test="@rend ='bold'">
+                 <fo:inline font-weight="bold">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when> 
+            <xsl:when test="@rend ='smallCaps' or @rend ='small-caps'">
+                <fo:inline font-variant="small-caps;">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:when test="@rendition ='sup'">
+                <fo:inline text-decoration="sup"  font-family="Open Sans, helvetica, arial,sans-serif;">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:when test="@rendition ='sub' or @rend ='sub'">
+                <fo:inline vertical-align="sub"  font-family="Open Sans, helvetica, arial,sans-serif;">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:apply-templates/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:bibl">
+        <xsl:choose>
+            <xsl:when test="child::tei:title[@type='desc'] and ancestor::tei:note[@type='footnote']">
+                <fo:inline font-family="Open Sans, helvetica, arial, sans-serif" font-style="italic" font-size="7pt"><xsl:apply-templates select="tei:title"></xsl:apply-templates></fo:inline>
+            </xsl:when>
+            <xsl:when test="child::tei:title[@type='desc']">
+                <fo:inline font-family="Open Sans, helvetica, arial, sans-serif" font-style="italic" font-size="8pt"><xsl:apply-templates select="tei:title"></xsl:apply-templates></fo:inline>
+            </xsl:when>
+            <xsl:otherwise>
+                <fo:inline font-size="10pt" font-family="Open Sans, helvetica, arial">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:foreign">
+        <xsl:choose>
+            <xsl:when test="@xml:lang='ara'">
+                <fo:inline font-family="Arabic Typesetting, Open Sans"> 
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:otherwise>
+                <fo:inline font-family="arial"> 
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+
+<!-- Abbildungsverzeichnis -->
+    <xsl:template match="tei:listBibl">
+        <xsl:choose>
+            <xsl:when test=" parent::tei:div[@type='bibliography']"> 
+ 
+            <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial">
+                <xsl:for-each select="tei:bibl">
+                    <fo:list-item>
+                        <fo:list-item-label>
+                            <fo:block> </fo:block>
+                        </fo:list-item-label>
+                        <fo:list-item-body>
+                            <fo:block font-size="10px" padding-before="10px">
+
+                                <xsl:apply-templates/>
+                            </fo:block>
+                        </fo:list-item-body>
+                    </fo:list-item>
+                </xsl:for-each>
+            </fo:list-block>
+            </xsl:when>
+         <xsl:otherwise>
+                <fo:block>
+                    <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial">
+                        <xsl:for-each select="tei:bibl">
+                            <fo:list-item>
+                                <fo:list-item-label>
+                                    <fo:block> </fo:block>
+                                </fo:list-item-label>
+                                <fo:list-item-body>
+                                    <fo:block font-size="10px" padding-before="10px">
+                                        
+                                        <xsl:apply-templates/>
+                                    </fo:block>
+                                </fo:list-item-body>
+                            </fo:list-item>
+                        </xsl:for-each>
+                    </fo:list-block>
+                </fo:block>
+         </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    <!-- muss noch angepasst werden -->
+    <!--<xsl:template match="tei:desc[@type = 'table']">
+        
+        <ul class="tabelle">
+            <xsl:for-each select=".">
+                <xsl:element name="li">
+                    <xsl:attribute name="id">
+                        <xsl:value-of select="@xml:id"/>
+                    </xsl:attribute>
+                    <!-\-<a>
+                        <xsl:attribute name="href">
+                            <xsl:value-of select="tei:ref[@type = 'intern']/@target"/>
+                        </xsl:attribute>
+                        <xsl:text>Tab. </xsl:text><xsl:number count="tei:desc[@type='table']"></xsl:number>
+                    </a>-\->
+                    <xsl:apply-templates/>
+                </xsl:element>
+            </xsl:for-each>
+        </ul>
+    </xsl:template>-->
+
+    <xsl:template match="tei:ptr">
+        <xsl:apply-templates/>
+        <xsl:choose>
+            <xsl:when test="@type='opac' ">
+                <xsl:text>[</xsl:text>
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination"> <xsl:value-of select="$opac"
+                            /><xsl:value-of select="@cRef"/></xsl:attribute>
+                    <xsl:text>
+Nachweis im OPAC</xsl:text>
+                </fo:basic-link>
+                <xsl:text>]</xsl:text>
+            </xsl:when>
+            <xsl:when test="@type='gbv'">
+                <xsl:text>[</xsl:text><fo:basic-link color="#9d3a00"><xsl:attribute name="external-destination"><xsl:value-of select="$gbv"/><xsl:value-of select="@cRef"/></xsl:attribute>
+<xsl:text>Nachweis im GVK</xsl:text></fo:basic-link><xsl:text>]</xsl:text>
+            </xsl:when>
+            <xsl:when test="@type='varia' ">
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination">
+                        <xsl:value-of select="@cRef"/>
+                    </xsl:attribute>
+                    <xsl:text>
+[online]</xsl:text>
+                </fo:basic-link>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:formula">
+        <fo:inline font-family="arial" font-style="italic">
+                <xsl:apply-templates/>
+            </fo:inline>  
+    </xsl:template>
+
+    <xsl:template match="tei:desc[@type='graphic']">
+
+        <fo:block>
+            <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial">
+                <xsl:for-each select=".">
+                    <fo:list-item>
+                        <fo:list-item-label>
+                            <fo:block> </fo:block>
+                        </fo:list-item-label>
+                        <fo:list-item-body>
+                            <fo:block font-size="10px" padding-before="10px">
+                                <xsl:variable name="graphic2">
+                                    <xsl:value-of
+                                        select="substring-after(tei:ref[@type='graphic']/@target, '#')"
+                                    />
+                                </xsl:variable>                      
+                                <fo:basic-link internal-destination="{$graphic2}" color="grey">
+                                    <xsl:choose>
+                                        <xsl:when test="//tei:langUsage/tei:language[text() = 'Text in Englisch']">
+                                            <xsl:text>Fig. </xsl:text>
+                                        </xsl:when>
+                                        <xsl:otherwise><xsl:text>Abb. </xsl:text></xsl:otherwise>
+                                    </xsl:choose>
+                                    <xsl:number count="tei:desc[@type='graphic']"></xsl:number></fo:basic-link><xsl:text>: </xsl:text><xsl:apply-templates/>
+                            </fo:block>
+                        </fo:list-item-body>
+                    </fo:list-item>
+                </xsl:for-each>
+            </fo:list-block>
+        </fo:block>
+    </xsl:template>
+    
+    <xsl:template match="tei:desc[@type='table']">
+        
+        <fo:block>
+            <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial">
+                <xsl:for-each select=".">
+                    <fo:list-item>
+                        <fo:list-item-label>
+                            <fo:block> </fo:block>
+                        </fo:list-item-label>
+                        <fo:list-item-body>
+                            <fo:block padding-before="10px" font-size="10px">
+                                <xsl:variable name="graphic2">
+                                    <xsl:value-of
+                                        select="substring-after(tei:ref[@type='table']/@target, '#')"
+                                    />
+                                </xsl:variable>                      
+                                <!--<fo:basic-link internal-destination="{$graphic2}" color="grey">
+                                    <xsl:text>Tab. </xsl:text><xsl:number count="tei:desc[@type='table']"></xsl:number></fo:basic-link><xsl:text>: </xsl:text>-->
+                                <xsl:apply-templates/>
+                            </fo:block>
+                        </fo:list-item-body>
+                    </fo:list-item>
+                </xsl:for-each>
+            </fo:list-block>
+        </fo:block>
+    </xsl:template>
+
+    <xsl:template match="tei:quote">
+        <xsl:text>&#187;</xsl:text>
+        <xsl:apply-templates/>
+        <xsl:text>&#171;</xsl:text>        
+    </xsl:template>
+</xsl:stylesheet>
diff --git a/skripte/2022/transformation_xml.xsl b/skripte/2022/transformation_xml.xsl
new file mode 100644
index 0000000000000000000000000000000000000000..9d8c3cfc8b0ee68e89adefb847f2f8a1b6a0f2af
--- /dev/null
+++ b/skripte/2022/transformation_xml.xsl
@@ -0,0 +1,404 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+    <xsl:stylesheet xmlns:html="http://www.w3.org/1999/html" xmlns:tei="http://www.tei-c.org/ns/1.0"
+    xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+    xmlns="http://www.tei-c.org/ns/1.0" version="1.0">
+    
+    <xsl:output method="xml" version="1.0" omit-xml-declaration="no" encoding="utf-8" indent="yes"/>
+    
+    <xsl:template match="/">
+    <xsl:processing-instruction name="xml-model">
+        href="https://www.zfdg.de/sites/default/files/schema/tei_zfdg.rnc" type="application/relax-ng-compact-syntax"
+    </xsl:processing-instruction>    
+        
+        <TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:html="http://www.w3.org/1999/html"
+            xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xlink="http://www.w3.org/1999/xlink"
+            xmlns:xhtml="http://www.w3.org/1999/xhtml">
+            <teiHeader>
+                <fileDesc>
+                    <titleStmt>
+                        <title>
+                            <biblStruct>
+                                <analytic>
+                                    <title level="a"><xsl:value-of select="/tei:TEI/tei:text/tei:body/tei:p[@rend='Titel_zfdg']"/></title>  
+                                    <respStmt>
+                                        <resp ref="http://id.loc.gov/vocabulary/relators/aut">Author</resp>
+                                            <persName>                                                
+                                                    <forename>Vorname Artikelautor 1</forename>
+                                                    <surname>Nachname Vorname Artikelautor 1</surname>                                                
+                                                <email>Mail Artikelautor 1</email>
+                                                <idno type="gnd">GND-Nummer Artikelautor 1</idno>
+                                                <idno type="orcid">ORCID Artikelautor 1</idno>
+                                                <affiliation>Organisation Artikelautor 1</affiliation>
+                                            </persName>
+                                    </respStmt>
+                                    <!-- respStmt wiederholen, wenn mehrere Artikelautoren vorliegen -->                         
+                                    <idno type="doi">10.17175/2022_00x</idno>
+                                    <idno type="ppn">ppn</idno>
+                                    <idno type="zfdg">2022.00x</idno>
+                                    <idno type="url">https://www.zfdg.de/node/xxx</idno>
+                                    <date when="2022-07-08">dd.mm.2022</date>
+                                </analytic>
+                                <monogr>
+                                    <title level="j">Zeitschrift für digitale Geisteswissenschaften</title>
+                                    <respStmt>
+                                        <resp>Publiziert von</resp>
+                                        <orgName role="marc_pbl">Herzog August Bibliothek</orgName>
+                                    </respStmt>
+                                    <respStmt>
+                                        <resp ref="http://id.loc.gov/vocabulary/relators/dtm">Transformation der Word Vorlage nach TEI</resp>
+                                        <persName/>                                        
+                                            <surname>Baumgarten</surname>
+                                            <forename>Marcus</forename>
+                                            <idno type="gnd">1192832655</idno> 
+                                        <idno type="orcid">0000-0003-0801-9462</idno>
+                                    </respStmt>
+                                    <availability status="free">
+                                        <p>Available at <ref target="https://www.zfdg.de">https://www.zfdg.de</ref>
+                                        </p>
+                                    </availability>
+                                    <biblScope unit="year">2022</biblScope>
+                                    <!-- Hier Eintrag ob Artikel oder Projektvorstellung plus Nummerierung -->
+                                    <biblScope unit="artikel">xx</biblScope>
+                                </monogr>
+                            </biblStruct>
+                        </title>
+                    </titleStmt>
+                    <editionStmt>
+                        <edition>Elektronische Ausgabe nach TEI P5</edition>
+                    </editionStmt>
+                    <publicationStmt>
+                        <distributor>
+                            <name>
+                                <orgName>Herzog August Bibliothek Wolfenbüttel</orgName>
+                            </name>
+                        </distributor>
+                        <!-- Normdaten der Zeitschrift -->
+                        <idno type="doi">10.17175/zfdg.01</idno>
+                        <idno type="ppn">0819494402</idno>
+                        <authority>
+                            <name>Herzog August Bibliothek</name>
+                            <address>
+                                <addrLine>Lessingplatz 1</addrLine>
+                                <addrLine>38304 Wolfenbüttel</addrLine>
+                            </address>
+                        </authority>
+                        <authority><name>Forschungsverbund Marbach Weimar Wolfenbüttel</name><address>
+                            <addrLine>Burgplatz 4</addrLine>
+                            <addrLine>99423 Weimar </addrLine>
+                        </address></authority>
+                        <availability status="free">
+                            <p> Sofern nicht anders angegeben </p>
+                            <licence target="http://creativecommons.org/licenses/by/4.0/">CC BY SA 4.0</licence>
+                        </availability>
+                        <availability status="free">
+                            <p> Available at <ref target="workID">https://www.zfdg.de; (c)
+                                Forschungsverbund MWW</ref>
+                            </p>
+                        </availability>
+                    </publicationStmt>
+                    <sourceDesc>
+                        <!-- Hier Angabe ob Einreichung als Artikel oder Projektvorstellung -->
+                        <p>Einreichung als Fachartikel in der ZfdG durch die Autor*innen</p>
+                    </sourceDesc>
+                </fileDesc>
+                <encodingDesc>
+                    <editorialDecl>
+                        <p>Transformation der WORD-Vorlage nach XML/TEI-P5 durch TEI-Oxgarage und
+                            XSLT-Skripten</p>
+                    </editorialDecl>
+                    <editorialDecl>
+                        <p xml:lang="de">Lektorat des Textes durch die Redaktion in Person von <persName>Martin Wiegand</persName>.</p>
+                    </editorialDecl>
+                    <editorialDecl>
+                        <p>Medienrechte liegen bei den Autor*innen</p>
+                    </editorialDecl>
+                    <editorialDecl>
+                        <!-- Datum des letzten Linkchecks angeben -->
+                        <p>All links checked<date when="2022">dd.mm.2022</date>
+                        </p>
+                    </editorialDecl>
+                </encodingDesc>
+                <profileDesc>
+                    <creation>Einreichung als Artikel der Zeitschrift für digitale
+                        Geisteswissenschaften</creation>
+                    <langUsage>
+                        <!-- Wenn Text in Englisch, dann hier einfach die Nomenklatur umdrehen-->
+                            <language ident="de">Text in Deutsch</language>
+                            <language ident="de">Abstract in Deutsch</language>
+                            <language ident="en">Abstract in Englisch</language>  
+                    </langUsage>
+                    <textClass>
+                        <!-- Angabe von Schlagworten, im scheme entweder "gnd", "tadirah" oder "zfdg" angeben --> 
+                        <keywords scheme="gnd">
+                            <term>Schlagwort 1<ref target="GND-Nummer"/></term>
+                        </keywords>
+                    </textClass>
+                </profileDesc>
+                <revisionDesc>
+                    <change/>
+                </revisionDesc>
+            </teiHeader>             
+            <text>
+                <body>
+                    <div>
+                        <xsl:apply-templates select="tei:TEI/tei:text/tei:body"/>                        
+                    </div>
+                </body>
+            </text>
+        </TEI>
+    </xsl:template>
+    
+    <xsl:template match="tei:body">
+        <xsl:apply-templates select="tei:p |tei:list |tei:note |tei:table"/>
+    </xsl:template>
+    
+   
+    
+    
+    <xsl:template match="tei:p">
+        <xsl:choose>
+            <xsl:when test="@rend='Kapitel_Überschrift_zfdg'">
+                <div type="chapter">
+                <xsl:element name="head"><xsl:apply-templates /></xsl:element> 
+                </div>
+            </xsl:when>
+            <xsl:when test="@rend='Text_zfdg'">                
+                <xsl:element name="p"><xsl:apply-templates /></xsl:element> 
+            </xsl:when>
+            
+            <xsl:when test="@rend='zfdg-motto'">                
+                <xsl:element name="p">
+                    <xsl:attribute name="rendition">motto</xsl:attribute>
+                    <xsl:apply-templates />
+                </xsl:element> 
+            </xsl:when>
+            
+            <xsl:when test="@rend='zfdg-text'">                
+                <xsl:element name="p"><xsl:apply-templates /></xsl:element> 
+            </xsl:when>
+            
+                       
+            <xsl:when test="@rend='Großzitat_zfdg'">
+                <xsl:element name="p"><xsl:element name="quote"><xsl:attribute name="type">grosszitat</xsl:attribute><xsl:apply-templates/></xsl:element></xsl:element>
+            </xsl:when>
+            <xsl:when test="@rend='Zitat_zfdg'">
+                <xsl:element name="p"><xsl:element name="quote"><xsl:apply-templates/></xsl:element></xsl:element>
+            </xsl:when>
+            <xsl:when test="@rend='Abbildung_zfdg'">
+                <xsl:element name="figure"><xsl:element name="graphic"><xsl:attribute name="xml:id"><xsl:text>bildnummer eintragen</xsl:text></xsl:attribute><xsl:attribute name="url"><xsl:text>.../medien/</xsl:text></xsl:attribute>
+                    <xsl:element name="desc"><xsl:element name="ref"><xsl:attribute name="target"><xsl:text>#</xsl:text><xsl:value-of select="."/></xsl:attribute><xsl:value-of select="."/></xsl:element></xsl:element>
+                </xsl:element></xsl:element> 
+            </xsl:when>
+            <xsl:when test="@rend='Fußnoten_zfdg'">
+                <xsl:apply-templates></xsl:apply-templates>
+            </xsl:when>           
+            <xsl:when test="@rend='Bibliographie_zfdg'">
+                <xsl:element name="bibl"><xsl:apply-templates></xsl:apply-templates></xsl:element>
+            </xsl:when>
+            <xsl:when test="@rend='Abb_Legende_zfdg'">
+                <xsl:element name="desc"><xsl:attribute name="type"><xsl:text>graphic</xsl:text></xsl:attribute><xsl:attribute name="xml:id"><xsl:text>abb</xsl:text><xsl:number count="tei:desc[@type='graphic']"></xsl:number></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element>
+            </xsl:when>
+            <xsl:when test="@rend='Liste_unsortiert_zfdg'">
+                <xsl:element name="list"><xsl:attribute name="type"><xsl:text>unordered</xsl:text></xsl:attribute>
+                <item><xsl:apply-templates></xsl:apply-templates></item>
+                </xsl:element>
+            </xsl:when>
+        
+            <xsl:when test="@rend='Liste-nummeriert_zfdg'">
+                <xsl:element name="list"><xsl:attribute name="type"><xsl:text>ordered</xsl:text></xsl:attribute>
+                <item><xsl:apply-templates></xsl:apply-templates></item>
+                </xsl:element>
+            </xsl:when>
+        </xsl:choose>
+        
+        <xsl:choose>         
+            <xsl:when test="contains(@rend, 'Abstract_zfdg')">
+                <div type="abstract">
+                    <argument xml:lang="de">
+                        <xsl:element name="p"><xsl:apply-templates></xsl:apply-templates></xsl:element>        
+                    </argument>
+                </div>
+            </xsl:when>
+            
+        </xsl:choose>
+        
+    </xsl:template>
+    
+    
+   
+    <xsl:template match="tei:note[@place='foot']">
+        <xsl:element name="note">
+            <xsl:attribute name="type">footnote</xsl:attribute>
+            <xsl:apply-templates />
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="tei:seg">
+        <xsl:choose>
+            <xsl:when test="@rend='italic'">
+                <xsl:element name="hi"><xsl:attribute name="rend">italic</xsl:attribute><xsl:apply-templates/></xsl:element>
+            </xsl:when>
+            <xsl:otherwise><xsl:apply-templates></xsl:apply-templates></xsl:otherwise>
+        </xsl:choose>   
+    </xsl:template>
+    
+    <xsl:template match="tei:list">
+        <xsl:choose>
+            <xsl:when test="@type='unordered'">
+                <xsl:element name="list"><xsl:attribute name="type"><xsl:text>unordered</xsl:text></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element>
+            </xsl:when>
+            <xsl:when test="@type='ordered'">
+                <xsl:element name="list"><xsl:attribute name="type"><xsl:text>ordered</xsl:text></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element>
+            </xsl:when>
+            <xsl:otherwise><xsl:element name="list"><xsl:apply-templates></xsl:apply-templates></xsl:element></xsl:otherwise>
+        </xsl:choose>
+        
+    </xsl:template>
+    
+
+    
+    <xsl:template match="tei:item">
+        <xsl:element name="item"><xsl:apply-templates></xsl:apply-templates></xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="tei:hi">
+        <xsl:choose>
+            <xsl:when test="@rend ='italics' or @rend ='italic'">
+                <xsl:element name="hi"><xsl:attribute name="rend">italic</xsl:attribute><xsl:apply-templates/></xsl:element>
+            </xsl:when>
+            
+            <xsl:when test="@rend='zfdg-formel'">                
+                <xsl:element name="formula"><xsl:apply-templates /></xsl:element> 
+            </xsl:when>
+            
+            <xsl:when test="@rend ='Link_zfdg'">
+                <ref>
+                    <xsl:attribute name="target">
+                    <xsl:value-of select="."/>
+                    </xsl:attribute>
+                    <xsl:value-of select="."/>
+                </ref>                
+            </xsl:when>
+            
+            <xsl:when test="@rend ='zfdg-fußnote-link'">
+                <ref>
+                    <xsl:attribute name="target">
+                        <xsl:value-of select="."/>
+                    </xsl:attribute>
+                    <xsl:value-of select="."/>
+                </ref>                
+            </xsl:when>
+            
+            <xsl:when test="@rend ='color(222222)'">             
+                <xsl:value-of select="."/>                
+            </xsl:when>
+            <xsl:when test="@rend ='Werktitel_zfdg'">
+                <bibl><title type="desc"><xsl:apply-templates></xsl:apply-templates></title></bibl>
+            </xsl:when> 
+            <xsl:when test="@rend ='zfdg-institution'">
+                <term type="corporate" ref="LINK"><xsl:apply-templates></xsl:apply-templates></term>
+            </xsl:when>    
+            <xsl:when test="@rend ='Fachbegriff_zfdg'">
+                <term type="dh"><xsl:apply-templates></xsl:apply-templates></term>
+            </xsl:when>
+            <xsl:when test="@rend ='zfdg-dh-begriffe'">
+                <emph><xsl:apply-templates></xsl:apply-templates></emph>
+            </xsl:when>
+            <xsl:when test="@rend ='Betonung_text_zfdg'">
+                <hi rend="italic"><xsl:apply-templates></xsl:apply-templates></hi>
+            </xsl:when> 
+            <xsl:when test="@rend ='Fettdruck_text_zfdg'">
+                <hi rend="bold"><xsl:apply-templates></xsl:apply-templates></hi>
+            </xsl:when> 
+            <xsl:when test="@rend='Code_zfdg'">
+            <code><xsl:apply-templates/></code>
+            </xsl:when>
+            
+            <!-- Template hinzugefügt von HFS am 10.11.2020 -->
+            <xsl:when test="@rend='Term_zfdg_Zchn'"><term type="figure">
+                <xsl:apply-templates></xsl:apply-templates></term>
+            </xsl:when>  
+            <xsl:when test="@rend='Name_zfdg'"><term type="name">
+                <xsl:apply-templates></xsl:apply-templates></term>
+            </xsl:when>  
+            <xsl:when test="@rend ='Kap_Verweis_zfdg'">
+                <ref type="intern" target="#hd"><xsl:apply-templates></xsl:apply-templates></ref>
+            </xsl:when>
+            
+            <!-- Template hinzugefügt von MB am 9.12.2020 -->
+            <!-- wird vom xml2html nicht übernommen -->
+            
+            <xsl:when test="@rend ='Abb_Legende_zfdg'">
+                <xsl:apply-templates/>
+            </xsl:when>
+            
+            
+            
+            <!-- Template hinzugefügt von MB am 25.6.2020, ergänzt am 10.2.22 -->
+            <xsl:when test="@rend='Zitat_zfdg'">
+                <quote><xsl:apply-templates/></quote>
+
+            </xsl:when>
+            
+            <xsl:when test="@rend='Großzitat_zfdg_Zchn'">
+                <quote type="grosszitat"><xsl:apply-templates/></quote>
+            </xsl:when>          
+
+            <!-- auskommentiert von MB am 25.6.2020 Was macht dieses Template aus einer Prüfung auf @ ?? -->
+            <!--<xsl:when test="'Fußnotenanker'">
+                <xsl:apply-templates></xsl:apply-templates>
+            </xsl:when>-->
+            
+            <xsl:when test="@rend ='Abb_Verweis_zfdg_Zchn'">
+                <ref type="graphic" target="#Abbildungslink"><xsl:apply-templates></xsl:apply-templates></ref>
+            </xsl:when> 
+            
+            <xsl:when test="@rend='bold'">
+                <hi rend="bold"><xsl:apply-templates/></hi>
+            </xsl:when>
+            
+            <xsl:when test="@rend='superscript'">
+                <hi rend="super"><xsl:apply-templates/></hi>
+            </xsl:when>
+            
+            <xsl:otherwise><xsl:apply-templates/></xsl:otherwise>
+             
+        </xsl:choose>    
+    </xsl:template>
+        
+        <!-- Template für Tabellen hinzugefügt von MB am 25.6.2020 -->
+        <xsl:template match="tei:table">
+            <xsl:element name="table">               
+            <xsl:for-each select="tei:row">
+                    <xsl:element name="row">
+                        <xsl:apply-templates select="."/></xsl:element>
+            </xsl:for-each>
+            </xsl:element>            
+        </xsl:template>
+        
+        <xsl:template match="tei:cell">
+            <xsl:choose>
+                <xsl:when test="ancestor::tei:row">
+                    <cell><xsl:apply-templates/></cell>
+                </xsl:when>                
+                <xsl:otherwise>
+                    <tei:cell><xsl:apply-templates/></tei:cell>
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:template>
+        
+        
+        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+    
+    <xsl:template match="tei:ref">
+        <xsl:element name="ref">
+            <xsl:attribute name="target">
+                <xsl:value-of select="@target"/>
+            </xsl:attribute><xsl:value-of select="."/>
+            <!-- auskommentiert von MB am 25.6. da doppelte Ausgabe des Textknotens  -->
+            <!--<xsl:value-of select="tei:hi"/>-->
+        </xsl:element>
+        </xsl:template>
+</xsl:stylesheet>
diff --git a/skripte/2022/xsl-fo_print.xsl b/skripte/2022/xsl-fo_print.xsl
new file mode 100644
index 0000000000000000000000000000000000000000..5195331dd38828e6b3e6e62613fb75318679071d
--- /dev/null
+++ b/skripte/2022/xsl-fo_print.xsl
@@ -0,0 +1,1408 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0" xmlns:tei="http://www.tei-c.org/ns/1.0"
+    xmlns:mets="http://www.loc.gov/METS/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:fo="http://www.w3.org/1999/XSL/Format"
+    xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"
+    xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
+
+
+    <xsl:output indent="yes" encoding="utf-8"/>
+
+
+    <!-- *****************************************************
+** Globale Parameter
+***************************************************** -->
+
+    <xsl:param name="dir"/>
+
+    <!-- Seitenbreite, -hoehe -->
+    <xsl:param name="Seitenbreite">165mm</xsl:param>
+    <xsl:param name="Seitenhoehe">240mm</xsl:param>
+    <!-- Raender: oben rechts unten links -->
+    <xsl:param name="Raender-rechte-Seiten">9mm 7mm 18mm 18mm</xsl:param>
+    <xsl:param name="Raender-linke-Seiten">9mm 18mm 18mm 7mm</xsl:param>
+    <xsl:param name="Innenraender-rechte-Seiten">22mm 30mm 0mm 0mm</xsl:param>
+    <xsl:param name="Innenraender-linke-Seiten">22mm 0mm 0mm 30mm</xsl:param>
+    <!-- Typografie -->
+    <xsl:param name="Schriftname">Arial</xsl:param>
+    <xsl:param name="Schriftgroesse">10pt</xsl:param>
+    <xsl:param name="Zeilenhoehe">12pt</xsl:param>
+    <xsl:variable name="gbv">
+        <xsl:text>http://gso.gbv.de/DB=2.1/PPN?PPN=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="opac">
+        <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/PPN?PPN=</xsl:text>
+    </xsl:variable>
+
+
+
+    <!-- *****************************************************
+** Templates
+***************************************************** -->
+
+
+    <xsl:template match="/">
+        <fo:root>
+
+            <fo:layout-master-set>
+
+                <!--    <fo:simple-page-master master-name="title" page-height="{$Seitenhoehe}"
+                    page-width="{$Seitenbreite}" margin-top="10mm" margin-left="15mm"
+                    margin-bottom="10mm" margin-right="15mm">
+                    <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm"
+                        margin-right="5mm"> </fo:region-body>
+                    <fo:region-before extent="0mm"/>
+                    <fo:region-after extent="0mm"/>                    
+                </fo:simple-page-master> -->
+                <fo:simple-page-master master-name="titel" page-height="250mm"
+                    page-width="{$Seitenbreite}" margin-top="0mm" margin-left="15mm"
+                    margin-bottom="10mm" margin-right="15mm">
+                    <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm"
+                        margin-right="5mm"> </fo:region-body>
+                    <fo:region-before extent="0mm"/>
+                    <fo:region-after extent="0mm"/>
+
+                </fo:simple-page-master>
+                <fo:simple-page-master master-name="standard" page-height="{$Seitenhoehe}"
+                    page-width="{$Seitenbreite}" margin-top="10mm" margin-left="15mm"
+                    margin-bottom="10mm" margin-right="15mm">
+                    <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm"
+                        margin-right="5mm"> </fo:region-body>
+                    <fo:region-before extent="0mm"/>
+                    <fo:region-after extent="0mm"/>
+
+                </fo:simple-page-master>
+
+                <!-- <fo:page-sequence-master master-name="content">
+                    <fo:repeatable-page-master-alternatives>
+                        <fo:conditional-page-master-reference                  
+                            master-reference="titel"
+                            page-position="first" odd-or-even="odd"/>
+                    </fo:repeatable-page-master-alternatives>
+                    </fo:page-sequence-master>-->
+            </fo:layout-master-set>
+            <fo:bookmark-tree>
+                <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+                    <fo:bookmark internal-destination="{generate-id()}">
+                        <fo:bookmark-title>
+                            <xsl:value-of select="."/>
+                        </fo:bookmark-title>
+                    </fo:bookmark>
+                </xsl:for-each>
+            </fo:bookmark-tree>
+
+
+
+
+            <fo:page-sequence master-reference="titel" force-page-count="no-force">
+
+                <fo:flow flow-name="xsl-region-body" font-family="Open Sans, helvetica, arial, sans-serif"
+                    font-size="10px" line-height="1.5em">
+                    <fo:block margin-left="-9%" width="25px" max-width="50px">
+                        <fo:external-graphic
+                            src="https://zfdg.de/sites/default/files/logo-zfdg_02.png"  />
+                    </fo:block>
+                    <fo:block padding-before="10px" font-size="18px">
+                        <xsl:text>Zeitschrift für digitale Geisteswissenschaften</xsl:text>
+                    </fo:block>
+                    <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+                        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/>
+                    <fo:block padding-before="10px" font-size="12px">
+                        <xsl:text>Beitrag aus:</xsl:text>
+                    </fo:block>
+                    <fo:block font-size="12px" font-family="Open Sans, helvetica, arial, sans-serif">Fabrikation von Erkenntnis – Experimente in den Digital Humanities. Hg. 
+                        von Manuel Burghardt, Lisa Dieckmann, Timo Steyer, Peer Trilcke, Niels Walkowski, Joëlle Weis, Ulrike Wuttke. Wolfenbüttel 2021 - 2022. 
+                        (= Zeitschrift für digitale Geisteswissenschaften / Sonderbände, 5) text/html Format. Teilband 2 / Sonderband 5 der
+                        ZfdG:  DOI: <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://dx.doi.org/10.17175/sb005</xsl:text>
+                                
+                            </xsl:attribute>
+                            <xsl:text>10.17175/sb005</xsl:text>
+                        </fo:basic-link></fo:block>
+                    <fo:block padding-before="10px" font-size="12px">
+                        <xsl:text>Titel:</xsl:text>
+                    </fo:block>
+                    <fo:block font-size="12px" font-family="Open Sans, helvetica, arial, sans-serif">
+                      <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"/>
+                  <!--      <xsl:text>. Artikel aus: Sonderband 1 der ZfdG: Grenzen und Möglichkeiten der Digital Humanities. Hg. von Constanze Baum und Thomas Stäcker. 2015. DOI: </xsl:text>
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://dx.doi.org/</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                            />
+                        </fo:basic-link>-->
+                      
+                    </fo:block>
+                    <fo:block>
+                        <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt">
+                            <fo:leader leader-length="25%" rule-thickness="0.5pt" leader-pattern="rule"></fo:leader>
+                        </xsl:if>
+                    </fo:block>
+                    <xsl:choose>
+                        <xsl:when test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt">
+                            
+                    <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt">
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>Autor*in:</xsl:text>
+                        </fo:block>
+                        <fo:inline>
+                            <xsl:value-of
+                                select="tei:resp/tei:persName/tei:name/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:value-of
+                                select="tei:resp/tei:persName/tei:name/tei:surname"
+                            />
+                        </fo:inline>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+                
+                            <xsl:text>Kontakt: </xsl:text>
+                        
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>mailto:</xsl:text>
+                                <xsl:value-of
+                                    select="tei:resp/tei:persName/tei:email"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="tei:resp/tei:persName/tei:email"
+                            />
+                        </fo:basic-link>
+                    </fo:block>
+                    <fo:block font-size="12px">
+                        <xsl:text>Institution: </xsl:text>
+                        <xsl:value-of
+                            select="tei:orgName"
+                        />
+                    </fo:block>
+                    <fo:block font-size="12px">
+                     
+                            <xsl:text>GND: </xsl:text>
+                        
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://d-nb.info/gnd/</xsl:text>
+                                <xsl:value-of
+                                    select="tei:resp/tei:persName/tei:idno[@type='gnd']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="tei:resp/tei:persName/tei:idno[@type='gnd']"
+                            />
+                        </fo:basic-link>
+
+                        <xsl:if test="tei:resp/tei:persName/tei:idno[@type='orcid']">
+                            <xsl:text> ORCID: </xsl:text>          
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>https://orcid.org/</xsl:text>
+                                <xsl:value-of
+                                    select="tei:resp/tei:persName/tei:idno[@type='orcid']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="tei:resp/tei:persName/tei:idno[@type='orcid']"
+                            />
+                        </fo:basic-link>
+                        </xsl:if>
+                        
+                        <!-- CREDIT Rollen -->
+                        
+                        <xsl:if test="tei:resp/tei:idno[@type='credit']">
+                            <xsl:for-each select="tei:resp/tei:idno[@type='credit']">
+                                <fo:basic-link color="#9d3a00">
+                                    <xsl:attribute name="external-destination">
+                                        <xsl:text> Credit: </xsl:text>
+                                        <xsl:value-of
+                                            select="tei:resp/tei:idno[@corresp]"
+                                        />
+                                    </xsl:attribute>                                
+                                    <xsl:value-of
+                                        select="tei:resp/tei:idno"
+                                    />
+                                </fo:basic-link>
+                            </xsl:for-each>
+                        </xsl:if>
+                        
+                    </fo:block>
+                        
+                        
+                        
+                        <fo:block>
+                        <fo:leader leader-length="25%" rule-thickness="0.5pt" leader-pattern="rule"></fo:leader>
+                    </fo:block>
+                   
+                    </xsl:for-each>
+                        </xsl:when>
+                        <xsl:otherwise>
+                                <fo:block font-size="12px" padding-before="10px">
+                                    <fo:block>
+                                        <xsl:text>Autor*in:</xsl:text>
+                                    </fo:block>
+                                    <fo:inline>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:surname"
+                                        />
+                                    </fo:inline>
+                                </fo:block>
+                                <fo:block font-size="12px" padding-before="10px">
+                                    <fo:block>
+                                    <xsl:text>Kontakt: </xsl:text>
+                                </fo:block>
+                            <fo:inline>
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>mailto:</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:email"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:email"
+                                        />
+                                    </fo:basic-link>
+                            </fo:inline>
+                                </fo:block>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>Institution: </xsl:text>
+                                </fo:block>
+                                    <xsl:value-of
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:orgName"
+                                    />
+                                </fo:block>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>GND: </xsl:text>
+                                </fo:block>
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>http://d-nb.info/gnd/</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type='gnd']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type='gnd']"
+                                        />
+                                    </fo:basic-link>
+                            </fo:block>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type='orcid']">
+                                <fo:block>
+                                    <xsl:text> ORCID: </xsl:text>
+                                </fo:block>
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>https://orcid.org/</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type='orcid']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type='orcid']"
+                                        />
+                                    </fo:basic-link>
+                                </xsl:if>
+                                </fo:block>
+                            
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px" 
+                        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/>
+
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>DOI des Artikels: </xsl:text>
+                        </fo:block>
+
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://dx.doi.org/</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                            />
+                        </fo:basic-link>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+
+                        <fo:block>
+                            <xsl:text>Nachweis im OPAC der Herzog August Bibliothek: </xsl:text>
+                        </fo:block>
+
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/XMLPRS=N/PPN?PPN=</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='ppn']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='ppn']"
+                            />
+                        </fo:basic-link>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>Erstveröffentlichung: </xsl:text>
+                        </fo:block>
+                        <xsl:value-of
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date"
+                        />
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+                        
+                        <fo:block>
+                            <xsl:text>Lizenz:</xsl:text>
+                        </fo:block>
+                        <xsl:text> Sofern nicht anders angegeben </xsl:text>
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://creativecommons.org/licenses/by-sa/4.0/</xsl:text>
+                            </xsl:attribute>
+                            <xsl:element name="fo:external-graphic">
+                                <xsl:attribute name="src">
+                                    <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text>
+                                </xsl:attribute>
+                            </xsl:element>
+                            <xsl:element name="img">
+                                <xsl:attribute name="alt">
+                                    <xsl:text>Creative Commons Lizenzvertrag</xsl:text>
+                                </xsl:attribute>
+                                <xsl:attribute name="src">
+                                    <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text>
+                                </xsl:attribute>
+                            </xsl:element>
+                        </fo:basic-link>
+                    </fo:block>
+
+                    <fo:block font-size="12px" padding-before="10px">
+
+                        <fo:block>
+                            <xsl:text>Medienlizenzen: </xsl:text>
+                        </fo:block>
+
+                        <xsl:value-of
+                            select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl/tei:p[2]"/>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+
+                        <fo:block>
+                            <xsl:text>Letzte Überprüfung aller Verweise: </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl/tei:p[3]/tei:date"
+                            />
+                        </fo:block>
+
+                        
+                    </fo:block>
+                    <xsl:choose>
+                        <xsl:when
+                            test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme='gnd']">
+                            <fo:block font-size="12px" padding-before="10px">
+
+
+
+                                <fo:block>
+                                    <xsl:text>GND-Verschlagwortung: </xsl:text>
+                                </fo:block>
+
+
+                                <xsl:for-each
+                                    select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme='gnd']/tei:term">
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>http://d-nb.info/gnd/</xsl:text>
+                                            <xsl:value-of select="./tei:ref/@target"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="."/>
+                                    </fo:basic-link>
+                                    <xsl:text> | </xsl:text>
+                                </xsl:for-each>
+                            </fo:block>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when
+                            test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme='tadirah']">
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>TaDiRAH-Verschlagwortung: </xsl:text>
+                                </fo:block>
+                                <xsl:for-each
+                                    select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme='tadirah']/tei:term">
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>http://tadirah.dariah.eu/vocab/index.php?tema=</xsl:text>
+                                            <xsl:value-of select="./tei:ref/@target"/>
+                                        </xsl:attribute>
+
+                                        <xsl:value-of select="."/>
+                                    </fo:basic-link>
+                                    <xsl:text> | </xsl:text>
+                                </xsl:for-each>
+                            </fo:block>
+                        </xsl:when>
+
+                    </xsl:choose>
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>Zitierweise: </xsl:text>
+                        </fo:block>
+
+
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                        <xsl:text> </xsl:text>
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"/>
+
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+                        <xsl:text>: </xsl:text>
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title"/>
+                        <xsl:text>. In: Fabrikation von Erkenntnis – Experimente in den Digital Humanities. Hg. von Manuel Burghardt, Lisa Dieckmann, 
+                            Timo Steyer, Peer Trilcke, Niels Walkowski, Joëlle Weis, Ulrike Wuttke. Wolfenbüttel 2021 - 2022. 
+                            (= Zeitschrift für digitale Geisteswissenschaften / Sonderbände, 5) text/html Format. DOI: 10.17175/sb005_001</xsl:text>
+                        <xsl:text> </xsl:text>
+
+                        <xsl:text> PDF Format ohne Paginierung.</xsl:text>
+                        <!-- <xsl:text>Eingesehen am: </xsl:text>
+                                    <xsl:value-of  select="$now"/>.   -->
+                        <xsl:text> Als text/html abrufbar unter DOI: </xsl:text>
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://dx.doi.org/</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                            />
+                        </fo:basic-link>
+                        <xsl:text>.</xsl:text>
+                    </fo:block>
+                    <!--   <fo:block page-break-before="always"></fo:block>  -->
+                </fo:flow>
+
+
+            </fo:page-sequence>
+            <fo:page-sequence master-reference="standard" initial-page-number="1">
+
+                <fo:static-content flow-name="xsl-region-before">
+                    <fo:block font-family="Open Sans, helvetica, arial" font-size="6pt" padding="5pt"
+                        text-align="left">
+                        <!--<xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno"/>
+                        <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:author/tei:name"/>
+                        <xsl:text> : </xsl:text>-->
+                     <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"/>
+                        <xsl:text> | ZfdG 2022</xsl:text>
+                        <!--   <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno"/>
+                       <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/> -->
+                        <fo:block>
+                            <fo:leader leader-length="100%" rule-thickness="0.5pt" leader-pattern="rule"
+                            />
+                        </fo:block>
+                    </fo:block>
+                </fo:static-content>
+                <fo:static-content flow-name="xsl-footnote-separator">
+                    <fo:block>
+                        <fo:leader leader-length="50%" rule-thickness="0.5pt" leader-pattern="rule"
+                        />
+                    </fo:block>
+                </fo:static-content>
+
+            <!--    <fo:static-content flow-name="xsl-region-after"> -->
+                 <!--   <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt" text-align="center"><hr/>Seite <fo:page-number/> -->
+                        <!--   <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/> -->
+                    <!-- </fo:block> -->
+             <!--   </fo:static-content> -->
+
+                <fo:flow flow-name="xsl-region-body">
+
+
+                    <fo:block font-size="16px" padding-before="25px" text-align="center" font-family="Open Sans, helvetica, arial">
+                        <fo:inline>
+                          
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:surname"
+                            />
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            
+                            
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            
+                            
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            
+
+                        </fo:inline>
+                    </fo:block>
+                
+                    <fo:block font-size="16px" padding-before="10px"  font-family="Open Sans, helvetica, arial" text-align="center" font-weight="bold">
+                    <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"
+                        />
+                    </fo:block>
+
+                    <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+                        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/>
+                    <fo:block font-size="10px" padding-before="10px"> </fo:block>
+
+
+                    <fo:block>
+                        <fo:block space-before="15pt" font-family="Open Sans, helvetica, arial" font-size="10pt">
+                        <xsl:text>Abstracts</xsl:text>
+                        </fo:block>
+                        <xsl:for-each select="//tei:text">
+                            <xsl:apply-templates/>
+                        </xsl:for-each>
+                    </fo:block>
+                </fo:flow>
+
+            </fo:page-sequence>
+        </fo:root>
+
+    </xsl:template>
+
+
+    <!--   <xsl:template match="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+       <fo:block id="{generate-id()}">
+           <apply-templates/>
+       </fo:block>
+   </xsl:template>
+    
+   <xsl:template match="Inhalt">
+        <fo:block font-size="18pt" font-weight="bold" text-align="center" space-after="6mm">
+            Inhaltsverzeichnis
+        </fo:block>
+        <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+            <xsl:call-template name="ivz.zeile"></xsl:call-template>
+        </xsl:for-each>
+    </xsl:template>
+   
+   <xsl:template name="ivz.zeile">
+       <fo:block text-align="justify">
+           <fo:table width="160mm">
+               <fo:table-column column-number="1" column-width="10mm">
+                   <fo:table-column column-number="2" column-width="150mm">
+                       <fo:table-body>
+                           <fo:table-row>
+                               <fo:table-cell column-number="1">
+                                   <fo:block>
+                                       <xsl:number level="single" count="/tei:TEI/tei:text/tei:body//tei:div/tei:head" format="1."/>
+                                   </fo:block>
+                               </fo:table-cell>
+                               <fo:table-cell>
+                                   <fo:table-cell column-number="2">
+                                       <fo:block>
+                                           <xsl:value-of select="tei:head"/>
+                                           <fo:inline>
+                                               <fo:leader leader-pattern="/tei:TEI/tei:text/tei:body//tei:div/tei:head">   
+                                               </fo:leader>  
+                                               <fo:page-number-citation ref-id="{generate-id()}"/>
+                                           </fo:inline>
+                                       </fo:block>
+                                   </fo:table-cell>
+                               </fo:table-cell>
+                           </fo:table-row>
+                       </fo:table-body>
+                   </fo:table-column>
+                   <fo:table-body></fo:table-body>
+               </fo:table-column>
+               <fo:table-body></fo:table-body>
+           </fo:table>
+           
+       </fo:block>
+       
+       
+   </xsl:template> -->
+    <xsl:template match="tei:head">
+        <fo:block id="{generate-id()}" space-before="20pt" font-size="12pt"
+            font-weight="bold" text-align="center">
+            <xsl:value-of select="."/>
+        </fo:block>
+    </xsl:template>
+    
+  <xsl:template match="tei:code">
+      <xsl:choose>
+          <xsl:when test="@rend='indent1'">
+              <fo:block font-size="8pt" font-family="Open Sans, helvetica, arial" margin-left="5%" >
+                  <xsl:apply-templates></xsl:apply-templates>
+              </fo:block>
+          </xsl:when>
+          <xsl:when test="@rend='indent2'">
+              <fo:block font-size="8pt" font-family="Open Sans, helvetica, arial" margin-left="10%">
+                  <xsl:apply-templates></xsl:apply-templates><br/>
+              </fo:block>
+          </xsl:when>
+          <xsl:when test="preceding-sibling::tei:lb">
+              
+                  <fo:block><xsl:apply-templates></xsl:apply-templates></fo:block>
+              
+          </xsl:when>
+         
+              <xsl:otherwise><fo:inline font-size="8pt" font-family="Courier"><xsl:apply-templates/></fo:inline> 
+                  <fo:inline font-size="8pt" font-family="Courier" margin-left="5%">
+                      <xsl:apply-templates/><br/>
+                  </fo:inline>
+              </xsl:otherwise>
+          
+      </xsl:choose>
+  </xsl:template>
+    
+
+
+    <xsl:template match="tei:p">
+       <xsl:choose>
+  <xsl:when test="tei:quote[@type='grosszitat']">
+            <!-- <fo:block padding-left="25px" margin-top="25px" margin-bottom="25px" border-left="2px solid #efefef" display="block"> -->
+            <fo:block space-before="15pt"  padding-left="25px" space-after="10pt" font-family="Open Sans, helvetica, arial" border-left="2px solid #efefef"
+                    font-size="8pt" line-height="1.5em">
+                <xsl:apply-templates/>
+            </fo:block>
+        </xsl:when>
+        <xsl:otherwise>
+        <fo:block space-before="15pt" space-after="10pt" font-family="Open Sans, helvetica, arial"
+            font-size="8pt" orphans="3"  widows="3" line-height="1.5em">
+            <xsl:apply-templates/>
+        </fo:block>
+        </xsl:otherwise>
+       </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template match="tei:div[@type='abbildungsnachweis']">
+        <fo:block page-break-before="always"></fo:block> 
+        <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+        <xsl:apply-templates></xsl:apply-templates>
+    </xsl:template>
+    
+    
+<xsl:template match="tei:div[@type='bibliography']">
+     <fo:block page-break-before="always"></fo:block>
+    <fo:block id="appendix-a"/>
+   <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+    <xsl:apply-templates></xsl:apply-templates>
+    <fo:block id="appendix-b"/>
+</xsl:template>
+    
+    <xsl:template match="tei:div[@type='bibliography2']">
+     
+        <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+        <xsl:apply-templates></xsl:apply-templates>
+
+    </xsl:template>
+    
+    <xsl:template match="tei:div[@type='glossar']">
+        <fo:block page-break-before="always"></fo:block> 
+        <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+        <xsl:apply-templates></xsl:apply-templates>
+    </xsl:template>
+
+    <xsl:template match="tei:argument/tei:p">
+
+        <fo:block space-before="15pt" space-after="10pt" text-indent="5mm" font-family="Open Sans, helvetica, arial" line-height="0.75em">
+            <fo:inline font-size="8pt" >
+           
+                <xsl:apply-templates/>
+            </fo:inline>
+        </fo:block>
+    </xsl:template>
+
+    <xsl:template match="tei:pb">
+        <fo:inline font-size="10pt">
+            <xsl:text> || </xsl:text>
+            <xsl:text> [</xsl:text>
+            <xsl:choose>
+                <xsl:when test="@n">
+                    <xsl:value-of select="@n"/>
+                </xsl:when>
+            </xsl:choose>
+            <xsl:text>] </xsl:text>
+        </fo:inline>
+    </xsl:template>
+
+    <xsl:template match="tei:note">
+
+        <xsl:choose>
+            <xsl:when test="@type='annotation'">
+                <fo:footnote>
+                    <fo:inline font-size="75%" baseline-shift="super">
+                        <xsl:number level="single" format="a" count="tei:note[@type ='annotation']"
+                        />
+                    </fo:inline>
+                    <fo:footnote-body font-family="Open Sans, helvetica, arial" font-size="8pt" font-weight="normal"
+                        font-style="normal" text-align="justify" >
+                        <fo:block >
+                            <fo:inline font-size="75%" baseline-shift="super">
+                                <xsl:number level="single" format="a"
+                                    count="tei:note[@type ='annotation']"/>
+                            </fo:inline>
+                            <xsl:apply-templates/>
+                        </fo:block>
+                    </fo:footnote-body>
+                </fo:footnote>
+            </xsl:when>
+        </xsl:choose>
+        <xsl:choose>
+            <xsl:when test="@type='footnote'">
+                <fo:footnote>
+                    <fo:inline font-size="45%" baseline-shift="super">
+                        <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+                    </fo:inline>
+                    <fo:footnote-body font-family="Open Sans, helvetica, arial" font-size="7pt" font-weight="normal"
+                        font-style="normal" line-height="1.0em">
+                        <fo:block text-indent="0" >
+                            <fo:inline baseline-shift="super" font-size="45%" >
+                                <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+                            </fo:inline>
+                            <xsl:apply-templates/>
+                        </fo:block>
+                    </fo:footnote-body>
+                </fo:footnote>
+            </xsl:when>
+
+        </xsl:choose>
+
+        <xsl:choose>
+            <xsl:when test="@type='commentar'">
+                <fo:block space-before="15pt" space-after="10pt"
+                    font-family="Open Sans, helvetica, arial" font-size="10pt">
+                    <xsl:apply-templates/>
+                </fo:block>
+            </xsl:when>
+        </xsl:choose>
+        <!-- ENDNOTEN  
+            <xsl:choose>
+            <xsl:when test="@type='footnote'">
+                <fo:block><fo:leader leader-pattern="rule"/></fo:block> <xsl:apply-templates select="." mode="endnote"/>
+            </xsl:when>
+        </xsl:choose>-->
+        <xsl:choose>
+            <xsl:when test="@type='textapparat'">
+                <fo:block space-before="15pt" space-after="10pt"
+                    font-family="Open Sans, helvetica, arial" font-size="10pt">
+                    <xsl:apply-templates/>
+                </fo:block>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+
+<xsl:template match="tei:list">
+    <xsl:choose>
+        <xsl:when test="@type='unordered'">
+            <!-- list start -->
+            <fo:list-block >
+                <!-- list item -->
+                <xsl:for-each select="tei:item">                <fo:list-item>
+                    <!-- insert a bullet -->
+                    <fo:list-item-label end-indent="label-end()">
+                        <fo:block>
+                            <fo:inline></fo:inline>
+                        </fo:block>
+                    </fo:list-item-label>
+                    <!-- list text -->
+                    <fo:list-item-body>
+                        <fo:block font-family="Open Sans, helvetica, arial"
+                            font-size="8pt" line-height="1.5em">
+                          <xsl:text>- </xsl:text><xsl:apply-templates select="."></xsl:apply-templates>
+                        </fo:block>
+                    </fo:list-item-body>
+                </fo:list-item>
+                </xsl:for-each>
+                
+            </fo:list-block>
+            <!-- end list -->
+        </xsl:when>
+        
+        <xsl:when test="@type='gloss'">
+           
+          
+                    <fo:table>
+                        <fo:table-body>
+                            <xsl:for-each select="tei:label">
+                             <fo:table-row>
+                           
+                                 <fo:table-cell width="60mm" padding-top="10px"> <fo:block 
+                                     font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:term"></xsl:apply-templates></fo:block></fo:table-cell>                       
+                                 <fo:table-cell padding-top="10px"><fo:block 
+                                     font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="following-sibling::tei:item[position()=1]/tei:gloss"></xsl:apply-templates></fo:block></fo:table-cell>
+                                 
+                               
+                             </fo:table-row>
+                           
+                            </xsl:for-each>     
+                            
+                        </fo:table-body>
+                    </fo:table>
+                    
+                
+                
+            <!-- end list -->
+       
+        </xsl:when>
+        
+        <xsl:when test="@type='ordered'">
+            <!-- list start -->
+            <fo:list-block >
+                <!-- list item -->
+                <xsl:for-each select="tei:item">                <fo:list-item>
+                    <!-- insert a bullet -->
+                    <fo:list-item-label end-indent="label-end()">
+                        <fo:block>
+                            <fo:inline></fo:inline>
+                        </fo:block>
+                    </fo:list-item-label>
+                    <!-- list text -->
+                    <fo:list-item-body start-indent="body-start()">
+                   
+                        <fo:block font-family="Open Sans, helvetica, arial"
+                            font-size="8pt" line-height="1.5em">
+                            <xsl:number count="tei:item" format="1." /><xsl:text> </xsl:text>
+                           <xsl:apply-templates select="."></xsl:apply-templates>
+                        </fo:block>
+                    </fo:list-item-body>
+                </fo:list-item>
+                </xsl:for-each>
+                
+            </fo:list-block>
+            <!-- end list -->
+        </xsl:when>
+    </xsl:choose>
+</xsl:template>
+    
+    <xsl:template match="tei:table">    
+        <fo:table>
+            <fo:table-footer>
+                
+                <fo:table-row>
+                    <!-- Breite des Trailers auf Tabelle anpassen mit Attributwert, beeinflusst auch insgesamt die Tabellenbreite -->
+                    <fo:table-cell number-columns-spanned="4">
+                        <fo:block space-before="15pt" space-after="10pt" padding-top="5px" font-family="Open Sans, helvetica, arial"
+                            font-size="7pt" orphans="3" line-height="1.0em">
+                            <xsl:apply-templates select="tei:trailer"/>
+                        </fo:block>
+                        
+                    </fo:table-cell>
+                </fo:table-row>
+            </fo:table-footer>
+            
+            <fo:table-body>
+                <xsl:for-each select="tei:row">
+                    <fo:table-row>
+                        <xsl:for-each select="tei:cell">                        
+                            <fo:table-cell padding-top="10px" padding-left="3px" padding-right="3px" border-style="solid" border-width="0.5pt" background="grey"> <fo:block 
+                                font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="."></xsl:apply-templates></fo:block></fo:table-cell>
+                            
+                            <!-- auskommentiert MB 11.5.21 -->
+                            <!-- <fo:table-cell width="50mm" padding-top="10px" border-style="solid" border-width="0.5pt"> <fo:block 
+                        font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:cell[1]"></xsl:apply-templates></fo:block></fo:table-cell>                       
+                    <fo:table-cell width="50mm" padding-top="10px" border-style="solid" border-width="0.5pt"><fo:block 
+                        font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:cell[2]"></xsl:apply-templates></fo:block></fo:table-cell>-->
+                        </xsl:for-each>
+                    </fo:table-row>                
+                </xsl:for-each>                  
+            </fo:table-body>
+        </fo:table>
+    </xsl:template>
+
+<!-- auskommentiert MB -->
+<!--<xsl:template match="tei:table">
+    
+    <fo:table>
+        <fo:table-body>
+            <xsl:for-each select="tei:row">
+                <fo:table-row>
+                    <fo:table-cell width="50mm" padding-top="10px" border-style="solid" border-width="0.5pt"> <fo:block 
+                        font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:cell[1]"></xsl:apply-templates></fo:block></fo:table-cell>                       
+                    <fo:table-cell width="50mm" padding-top="10px" border-style="solid" border-width="0.5pt"><fo:block 
+                        font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:cell[2]"></xsl:apply-templates></fo:block></fo:table-cell>
+                </fo:table-row>
+                
+            </xsl:for-each>     
+            
+        </fo:table-body>
+    </fo:table>
+</xsl:template>-->
+    
+  <xsl:template match="tei:graphic">
+        <xsl:choose>
+            <xsl:when test="@url">
+                <hr/>
+                <fo:block id="{@xml:id}" margin-left="150px" >
+                    
+                   <fo:inline font-size="8pt"  font-family="Open Sans, helvetica, arial">
+                        <xsl:element name="fo:external-graphic">
+                            <xsl:attribute name="src">
+                                <xsl:text>https://www.zfdg.de/sites/default/files/</xsl:text><xsl:value-of select="substring-after(@url, '.../')"/>                      
+                            </xsl:attribute>
+             
+                      <xsl:attribute name="content-width">300px</xsl:attribute>
+                            <xsl:attribute name="content-height">250px</xsl:attribute>
+                  
+                           
+                            
+                        </xsl:element>
+                    </fo:inline>
+                </fo:block>
+                <xsl:for-each select="tei:desc">
+                    <fo:block line-height="1.0em" text-indent="0">
+                    <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                    <xsl:apply-templates select="."/>
+                    </fo:inline>
+                    </fo:block>
+                </xsl:for-each>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+
+  <xsl:template match="tei:figure/tei:media">
+        <xsl:choose>
+            <xsl:when test="@type='svg'">
+                <xsl:choose>
+            <xsl:when test="@url">
+                <hr/>           
+                <fo:block id="{@xml:id}" margin-left="150px">       
+                    <fo:inline font-size="8pt"  font-family="Open Sans, helvetica, arial">
+                        <xsl:element name="fo:external-graphic">
+                            <xsl:attribute name="src">
+                                <xsl:text>medien/</xsl:text><xsl:value-of select="substring-before(substring-after(@url, '.../medien/svg/'), '.svg')"/><xsl:text>.jpg</xsl:text>                      
+                            </xsl:attribute>                            
+                            <xsl:attribute name="content-width">300px</xsl:attribute>
+                            <xsl:attribute name="content-height">250px</xsl:attribute>
+                        </xsl:element>
+                    </fo:inline>
+                </fo:block>
+                <xsl:for-each select="tei:desc">
+                    <fo:block line-height="1.0em" text-indent="0">
+                        <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                            <xsl:apply-templates select="."/>
+                        </fo:inline>
+                    </fo:block>
+                </xsl:for-each>
+            </xsl:when>
+                </xsl:choose>
+            </xsl:when>
+            <xsl:when test="@type='video'">
+
+                        <hr/>           
+  
+                        <xsl:for-each select="tei:desc">
+                            <fo:block line-height="1.0em" text-indent="0">
+                                <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                                    <xsl:apply-templates select="."/>
+                                </fo:inline>
+                            </fo:block>
+                        </xsl:for-each>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+<xsl:template match="tei:lg">
+    <xsl:for-each select="tei:l">
+        <fo:block line-height="1.0em" text-indent="0">
+            <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                <xsl:apply-templates select="."/>
+            </fo:inline>
+        </fo:block>
+    </xsl:for-each>
+</xsl:template>
+    
+    <xsl:template match="tei:milestone">
+        <fo:block page-break-before="always"></fo:block>
+    </xsl:template>
+    
+
+    <xsl:template match="tei:ref">
+
+        <xsl:choose>
+
+            <xsl:when test="@type='bibliography'">
+
+
+                <fo:basic-link internal-destination="appendix-a" color="grey">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+
+
+
+
+            </xsl:when>
+            <xsl:when test="@type='graphic'">
+                <xsl:variable name="graphic">
+                    <xsl:value-of select="substring-after(@target, '#')"/>
+                </xsl:variable>
+
+                <fo:basic-link internal-destination="{$graphic}" color="grey" font-family="Open Sans, helvetica, arial" line-height="1.0em">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+
+
+
+
+            </xsl:when>
+            <xsl:when test="@type='intern'">
+        
+                  
+                    <xsl:apply-templates/>
+                
+            </xsl:when>
+            <xsl:otherwise>
+
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </fo:basic-link>
+            </xsl:otherwise>
+        </xsl:choose>
+
+
+    </xsl:template>
+
+    <xsl:template match="tei:ref[parent::tei:desc]">
+        <xsl:choose>
+            <xsl:when test="@type='extern'">
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </fo:basic-link>
+            </xsl:when>
+            <xsl:otherwise>
+                <fo:basic-link internal-destination="appendix-b" color="grey">
+                 
+                        <xsl:value-of select="."/>
+                    
+                </fo:basic-link>
+
+            </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+
+    <xsl:template match="tei:hi">
+        <xsl:choose>
+            <xsl:when test="@rend ='italics' or @rend ='italic'">
+                    <fo:inline font-family="Open Sans, helvetica, arial,sans-serif" font-style="italic">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:when test="@rend='latin'">
+                <span style="font-family:junicode"><xsl:apply-templates></xsl:apply-templates></span>
+            </xsl:when>
+            <xsl:when test="@rend ='sans_serif'">
+                <fo:inline font-family="Open Sans, helvetica, arial,sans-serif;"><xsl:apply-templates/></fo:inline>
+            </xsl:when>
+        <xsl:when test="@rend ='bold'">
+             <fo:inline font-weight="bold">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when> 
+            <xsl:when test="@rend ='smallCaps' or @rend ='small-caps'">
+                <fo:inline font-variant="small-caps;">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:when test="@rendition ='sup'">
+                <fo:inline text-decoration="sup"  font-family="Open Sans, helvetica, arial,sans-serif;">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:when test="@rendition ='sub'">
+                <fo:inline vertical-align="sub"  font-family="Open Sans, helvetica, arial,sans-serif;">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:apply-templates/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:bibl">
+        <xsl:choose>
+            <xsl:when test="child::tei:title[@type='desc']">
+                <fo:inline font-family="Open Sans, helvetica, arial" font-style="italic" font-size="7pt"><xsl:apply-templates select="tei:title"></xsl:apply-templates></fo:inline>
+            </xsl:when>
+            <xsl:otherwise>
+                <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:foreign">
+        <xsl:choose>
+            <xsl:when test="@xml:lang='ara'">
+                <fo:inline font-family="Arabic Typesetting, Open Sans"> 
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:otherwise>
+                <fo:inline font-family="arial"> 
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+
+    <xsl:template match="tei:listBibl">
+        <xsl:choose>
+            <xsl:when test=" parent::tei:div[@type='bibliography']"> 
+ 
+            <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial">
+                <xsl:for-each select="tei:bibl">
+                    <fo:list-item>
+                        <fo:list-item-label>
+                            <fo:block> </fo:block>
+                        </fo:list-item-label>
+                        <fo:list-item-body>
+                            <fo:block font-size="10px" padding-before="10px">
+
+                                <xsl:apply-templates/>
+                            </fo:block>
+                        </fo:list-item-body>
+                    </fo:list-item>
+                </xsl:for-each>
+            </fo:list-block>
+            </xsl:when>
+         <xsl:otherwise>
+                <fo:block>
+                    <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial">
+                        <xsl:for-each select="tei:bibl">
+                            <fo:list-item>
+                                <fo:list-item-label>
+                                    <fo:block> </fo:block>
+                                </fo:list-item-label>
+                                <fo:list-item-body>
+                                    <fo:block font-size="10px" padding-before="10px">
+                                        
+                                        <xsl:apply-templates/>
+                                    </fo:block>
+                                </fo:list-item-body>
+                            </fo:list-item>
+                        </xsl:for-each>
+                    </fo:list-block>
+                </fo:block>
+         </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:ptr">
+        <xsl:apply-templates/>
+        <xsl:choose>
+            <xsl:when test="@type='opac' ">
+                <xsl:text>[</xsl:text>
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination"> <xsl:value-of select="$opac"
+                            /><xsl:value-of select="@cRef"/></xsl:attribute>
+                    <xsl:text>
+Nachweis im OPAC</xsl:text>
+                </fo:basic-link>
+                <xsl:text>]</xsl:text>
+            </xsl:when>
+            <xsl:when test="@type='gbv'">
+                <xsl:text>[</xsl:text><fo:basic-link color="#9d3a00"><xsl:attribute name="external-destination"><xsl:value-of select="$gbv"/><xsl:value-of select="@cRef"/></xsl:attribute>
+<xsl:text>Nachweis im GVK</xsl:text></fo:basic-link><xsl:text>]</xsl:text>
+            </xsl:when>
+            <xsl:when test="@type='varia' ">
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination">
+                        <xsl:value-of select="@cRef"/>
+                    </xsl:attribute>
+                    <xsl:text>
+[online]</xsl:text>
+                </fo:basic-link>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+
+
+    <xsl:template match="tei:desc[@type='graphic']">
+
+        <fo:block>
+            <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial">
+                <xsl:for-each select=".">
+                    <fo:list-item>
+                        <fo:list-item-label>
+                            <fo:block> </fo:block>
+                        </fo:list-item-label>
+                        <fo:list-item-body>
+                            <fo:block font-size="10px" padding-before="10px">
+                                <xsl:variable name="graphic2">
+                                    <xsl:value-of
+                                        select="substring-after(tei:ref[@type='graphic']/@target, '#')"
+                                    />
+                                </xsl:variable>                      
+                                <fo:basic-link internal-destination="{$graphic2}" color="grey">
+                                    <xsl:text>Abb. </xsl:text><xsl:number count="tei:desc[@type='graphic']"></xsl:number></fo:basic-link><xsl:text>: </xsl:text><xsl:apply-templates/>
+                            </fo:block>
+                        </fo:list-item-body>
+                    </fo:list-item>
+                </xsl:for-each>
+            </fo:list-block>
+        </fo:block>
+    </xsl:template>
+
+    <xsl:template match="tei:quote">
+        <xsl:text>&#187;</xsl:text>
+        <xsl:apply-templates/>
+        <xsl:text>&#171;</xsl:text>        
+    </xsl:template>
+    
+    <xsl:template match="tei:term[@type='dh']">
+        <fo:inline font-family="Open Sans, helvetica, arial,sans-serif" font-style="italic">
+            <xsl:apply-templates/>
+        </fo:inline>  
+    </xsl:template>
+    
+
+   
+
+
+</xsl:stylesheet>
diff --git a/skripte/2022/xsl-fo_print_eng.xsl b/skripte/2022/xsl-fo_print_eng.xsl
new file mode 100644
index 0000000000000000000000000000000000000000..49e6ef7e7005c2d817ce5e4df29a9821a5a2db39
--- /dev/null
+++ b/skripte/2022/xsl-fo_print_eng.xsl
@@ -0,0 +1,1337 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0" xmlns:tei="http://www.tei-c.org/ns/1.0"
+    xmlns:mets="http://www.loc.gov/METS/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:fo="http://www.w3.org/1999/XSL/Format"
+    xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"
+    xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
+
+
+    <xsl:output indent="yes" encoding="utf-8"/>
+
+
+    <!-- *****************************************************
+** Globale Parameter
+***************************************************** -->
+
+    <xsl:param name="dir"/>
+
+    <!-- Seitenbreite, -hoehe -->
+    <xsl:param name="Seitenbreite">165mm</xsl:param>
+    <xsl:param name="Seitenhoehe">240mm</xsl:param>
+    <!-- Raender: oben rechts unten links -->
+    <xsl:param name="Raender-rechte-Seiten">9mm 7mm 18mm 18mm</xsl:param>
+    <xsl:param name="Raender-linke-Seiten">9mm 18mm 18mm 7mm</xsl:param>
+    <xsl:param name="Innenraender-rechte-Seiten">22mm 30mm 0mm 0mm</xsl:param>
+    <xsl:param name="Innenraender-linke-Seiten">22mm 0mm 0mm 30mm</xsl:param>
+    <!-- Typografie -->
+    <xsl:param name="Schriftname">Arial</xsl:param>
+    <xsl:param name="Schriftgroesse">10pt</xsl:param>
+    <xsl:param name="Zeilenhoehe">12pt</xsl:param>
+    <xsl:variable name="gbv">
+        <xsl:text>http://gso.gbv.de/DB=2.1/PPN?PPN=</xsl:text>
+    </xsl:variable>
+    <xsl:variable name="opac">
+        <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/PPN?PPN=</xsl:text>
+    </xsl:variable>
+
+
+
+    <!-- *****************************************************
+** Templates
+***************************************************** -->
+
+
+    <xsl:template match="/">
+        <fo:root>
+
+            <fo:layout-master-set>
+
+                <!--    <fo:simple-page-master master-name="title" page-height="{$Seitenhoehe}"
+                    page-width="{$Seitenbreite}" margin-top="10mm" margin-left="15mm"
+                    margin-bottom="10mm" margin-right="15mm">
+                    <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm"
+                        margin-right="5mm"> </fo:region-body>
+                    <fo:region-before extent="0mm"/>
+                    <fo:region-after extent="0mm"/>                    
+                </fo:simple-page-master> -->
+                <fo:simple-page-master master-name="titel" page-height="250mm"
+                    page-width="{$Seitenbreite}" margin-top="0mm" margin-left="15mm"
+                    margin-bottom="10mm" margin-right="15mm">
+                    <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm"
+                        margin-right="5mm"> </fo:region-body>
+                    <fo:region-before extent="0mm"/>
+                    <fo:region-after extent="0mm"/>
+
+                </fo:simple-page-master>
+                <fo:simple-page-master master-name="standard" page-height="{$Seitenhoehe}"
+                    page-width="{$Seitenbreite}" margin-top="10mm" margin-left="15mm"
+                    margin-bottom="10mm" margin-right="15mm">
+                    <fo:region-body margin-top="15mm" margin-left="5mm" margin-bottom="10mm"
+                        margin-right="5mm"> </fo:region-body>
+                    <fo:region-before extent="0mm"/>
+                    <fo:region-after extent="0mm"/>
+
+                </fo:simple-page-master>
+
+                <!-- <fo:page-sequence-master master-name="content">
+                    <fo:repeatable-page-master-alternatives>
+                        <fo:conditional-page-master-reference                  
+                            master-reference="titel"
+                            page-position="first" odd-or-even="odd"/>
+                    </fo:repeatable-page-master-alternatives>
+                    </fo:page-sequence-master>-->
+            </fo:layout-master-set>
+            <fo:bookmark-tree>
+                <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+                    <fo:bookmark internal-destination="{generate-id()}">
+                        <fo:bookmark-title>
+                            <xsl:value-of select="."/>
+                        </fo:bookmark-title>
+                    </fo:bookmark>
+                </xsl:for-each>
+            </fo:bookmark-tree>
+
+
+
+
+            <fo:page-sequence master-reference="titel" force-page-count="no-force">
+
+                <fo:flow flow-name="xsl-region-body" font-family="Open Sans, helvetica, arial, sans-serif"
+                    font-size="10px" line-height="1.5em">
+                    <fo:block margin-left="-9%" width="25px" max-width="50px">
+                        <fo:external-graphic
+                            src="http://zfdg.de/sites/default/files/logo-zfdg_02.png"  />
+                    </fo:block>
+                    <fo:block padding-before="10px" font-size="18px">
+                        <xsl:text>Zeitschrift für digitale Geisteswissenschaften</xsl:text>
+                    </fo:block>
+                    <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+                        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/>
+                    <fo:block padding-before="10px" font-size="12px">
+                        <xsl:text>Beitrag aus:</xsl:text>
+                    </fo:block>
+                    <fo:block font-size="12px" font-family="Open Sans, helvetica, arial, sans-serif">*** muss angepasst werden *** Sonderband 4 der
+                        ZfdG: Die Modellierung des Zweifels – Schlüsselideen und -konzepte zur graphbasierten Modellierung von Unsicherheiten. Hg. von Andreas Kuczera, Thorsten Wübbena und Thomas Kollatz. 2019. DOI: <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://dx.doi.org/10.17175/sb005</xsl:text>
+                                
+                            </xsl:attribute>
+                            <xsl:text>10.17175/sb005</xsl:text>
+                        </fo:basic-link></fo:block>
+                    <fo:block padding-before="10px" font-size="12px">
+                        <xsl:text>Titel:</xsl:text>
+                    </fo:block>
+                    <fo:block font-size="12px" font-family="Open Sans, helvetica, arial, sans-serif">
+                      <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"/>
+                  <!--      <xsl:text>. Artikel aus: Sonderband 1 der ZfdG: Grenzen und Möglichkeiten der Digital Humanities. Hg. von Constanze Baum und Thomas Stäcker. 2015. DOI: </xsl:text>
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://dx.doi.org/</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                            />
+                        </fo:basic-link>-->
+                      
+                    </fo:block>
+                    <fo:block>
+                        <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]">
+                            <fo:leader leader-length="25%" rule-thickness="0.5pt" leader-pattern="rule"></fo:leader>
+                        </xsl:if>
+                    </fo:block>
+                    <xsl:choose>
+                        <xsl:when test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]">
+                            
+                    <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt">
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>Autor/in:</xsl:text>
+                        </fo:block>
+                        <fo:inline>
+                            <xsl:value-of
+                                select="tei:resp/tei:persName/tei:name/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:value-of
+                                select="tei:resp/tei:persName/tei:name/tei:surname"
+                            />
+                        </fo:inline>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+                
+                            <xsl:text>Kontakt: </xsl:text>
+                        
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>mailto:</xsl:text>
+                                <xsl:value-of
+                                    select="tei:resp/tei:persName/tei:email"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="tei:resp/tei:persName/tei:email"
+                            />
+                        </fo:basic-link>
+                    </fo:block>
+                    <fo:block font-size="12px">
+                        <xsl:text>Institution: </xsl:text>
+                        <xsl:value-of
+                            select="tei:orgName"
+                        />
+                    </fo:block>
+                    <fo:block font-size="12px">
+                     
+                            <xsl:text>GND: </xsl:text>
+                        
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://d-nb.info/gnd/</xsl:text>
+                                <xsl:value-of
+                                    select="tei:resp/tei:persName/tei:idno[@type='gnd']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="tei:resp/tei:persName/tei:idno[@type='gnd']"
+                            />
+                        </fo:basic-link>
+
+                        <xsl:if test="tei:resp/tei:persName/tei:idno[@type='orcid']">
+                            <xsl:text> ORCID: </xsl:text>          
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>https://orcid.org/</xsl:text>
+                                <xsl:value-of
+                                    select="tei:resp/tei:persName/tei:idno[@type='orcid']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="tei:resp/tei:persName/tei:idno[@type='orcid']"
+                            />
+                        </fo:basic-link>
+                        </xsl:if>
+                    </fo:block>
+                        <fo:block>
+                        <fo:leader leader-length="25%" rule-thickness="0.5pt" leader-pattern="rule"></fo:leader>
+                    </fo:block>
+                   
+                    </xsl:for-each>
+                        </xsl:when>
+                        <xsl:otherwise>
+                                <fo:block font-size="12px" padding-before="10px">
+                                    <fo:block>
+                                        <xsl:text>Autor/in:</xsl:text>
+                                    </fo:block>
+                                    <fo:inline>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                        <xsl:text> </xsl:text>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:surname"
+                                        />
+                                    </fo:inline>
+                                </fo:block>
+                                <fo:block font-size="12px" padding-before="10px">
+                                    <fo:block>
+                                    <xsl:text>Kontakt: </xsl:text>
+                                </fo:block>
+                            <fo:inline>
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">../aac-fackel/aac-fackel_2015.pdf
+                                            <xsl:text>mailto:</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:email"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:email"
+                                        />
+                                    </fo:basic-link>
+                            </fo:inline>
+                                </fo:block>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>Institution: </xsl:text>
+                                </fo:block>
+                                    <xsl:value-of
+                                        select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:orgName"
+                                    />
+                                </fo:block>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>GND: </xsl:text>
+                                </fo:block>
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>http://d-nb.info/gnd/</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type='gnd']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type='gnd']"
+                                        />
+                                    </fo:basic-link>
+                            </fo:block>
+                            <fo:block font-size="12px" padding-before="10px">
+                                <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type='orcid']">
+                                <fo:block>
+                                    <xsl:text> ORCID: </xsl:text>
+                                </fo:block>
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>https://orcid.org/</xsl:text>
+                                            <xsl:value-of
+                                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type='orcid']"
+                                            />
+                                        </xsl:attribute>
+                                        <xsl:value-of
+                                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:idno[@type='orcid']"
+                                        />
+                                    </fo:basic-link>
+                                </xsl:if>
+                                </fo:block>
+                            
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px" 
+                        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/>
+
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>DOI des Artikels: </xsl:text>
+                        </fo:block>
+
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://dx.doi.org/</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                            />
+                        </fo:basic-link>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+
+                        <fo:block>
+                            <xsl:text>Nachweis im OPAC der Herzog August Bibliothek: </xsl:text>
+                        </fo:block>
+
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://opac.lbs-braunschweig.gbv.de/DB=2/XMLPRS=N/PPN?PPN=</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='ppn']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='ppn']"
+                            />
+                        </fo:basic-link>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>Erstveröffentlichung: </xsl:text>
+                        </fo:block>
+                        <xsl:value-of
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:date"
+                        />
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+                        
+                        <fo:block>
+                            <xsl:text>Lizenz:</xsl:text>
+                        </fo:block>
+                        <xsl:text> Sofern nicht anders angegeben </xsl:text>
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://creativecommons.org/licenses/by-sa/4.0/</xsl:text>
+                            </xsl:attribute>
+                            <xsl:element name="fo:external-graphic">
+                                <xsl:attribute name="src">
+                                    <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text>
+                                </xsl:attribute>
+                            </xsl:element>
+                            <xsl:element name="img">
+                                <xsl:attribute name="alt">
+                                    <xsl:text>Creative Commons Lizenzvertrag</xsl:text>
+                                </xsl:attribute>
+                                <xsl:attribute name="src">
+                                    <xsl:text>https://licensebuttons.net/l/by-sa/4.0/80x15.png</xsl:text>
+                                </xsl:attribute>
+                            </xsl:element>
+                        </fo:basic-link>
+                    </fo:block>
+
+                    <fo:block font-size="12px" padding-before="10px">
+
+                        <fo:block>
+                            <xsl:text>Medienlizenzen: </xsl:text>
+                        </fo:block>
+
+                        <xsl:value-of
+                            select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl[3]"/>
+                    </fo:block>
+                    <fo:block font-size="12px" padding-before="10px">
+
+                        <fo:block>
+                            <xsl:text>Letzte Überprüfung aller Verweise: </xsl:text>
+                        </fo:block>
+
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:encodingDesc/tei:editorialDecl[4]/tei:p/tei:date"
+                        />
+                    </fo:block>
+                    <xsl:choose>
+                        <xsl:when
+                            test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme='gnd']">
+                            <fo:block font-size="12px" padding-before="10px">
+
+
+
+                                <fo:block>
+                                    <xsl:text>GND-Verschlagwortung: </xsl:text>
+                                </fo:block>
+
+
+                                <xsl:for-each
+                                    select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme='gnd']/tei:term">
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>http://d-nb.info/gnd/</xsl:text>
+                                            <xsl:value-of select="./tei:ref/@target"/>
+                                        </xsl:attribute>
+                                        <xsl:value-of select="."/>
+                                    </fo:basic-link>
+                                    <xsl:text> | </xsl:text>
+                                </xsl:for-each>
+                            </fo:block>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when
+                            test="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme='tadirah']">
+                            <fo:block font-size="12px" padding-before="10px">
+                                <fo:block>
+                                    <xsl:text>TaDiRAH-Verschlagwortung: </xsl:text>
+                                </fo:block>
+                                <xsl:for-each
+                                    select="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords[@scheme='tadirah']/tei:term">
+                                    <fo:basic-link color="#9d3a00">
+                                        <xsl:attribute name="external-destination">
+                                            <xsl:text>http://tadirah.dariah.eu/vocab/index.php?tema=</xsl:text>
+                                            <xsl:value-of select="./tei:ref/@target"/>
+                                        </xsl:attribute>
+
+                                        <xsl:value-of select="."/>
+                                    </fo:basic-link>
+                                    <xsl:text> | </xsl:text>
+                                </xsl:for-each>
+                            </fo:block>
+                        </xsl:when>
+
+                    </xsl:choose>
+                    <fo:block font-size="12px" padding-before="10px">
+                        <fo:block>
+                            <xsl:text>Zitierweise: </xsl:text>
+                        </fo:block>
+
+
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                        <xsl:text> </xsl:text>
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[1]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"/>
+
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+                        <xsl:if
+                            test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role='marc_aut']">
+                            <xsl:text>, </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:apply-templates
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name[@role='marc_aut']/tei:surname"
+                            />
+                        </xsl:if>
+                        <xsl:text>: </xsl:text>
+                        <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title"/>
+                        <xsl:text>. *** muss angepasst werden *** In: Die Modellierung des Zweifels – Schlüsselideen und -konzepte zur graphbasierten Modellierung von Unsicherheiten. Hg. von Andreas Kuczera, Thorsten Wübbena und Thomas Kollatz. 2019 (= Sonderband der Zeitschrift
+                        für digitale Geisteswissenschaften, 4).</xsl:text>
+                        <xsl:text> </xsl:text>
+
+                        <xsl:text> PDF Format ohne Paginierung.</xsl:text>
+                        <!-- <xsl:text>Eingesehen am: </xsl:text>
+                                    <xsl:value-of  select="$now"/>.   -->
+                        <xsl:text> Als text/html abrufbar unter DOI: </xsl:text>
+                        <fo:basic-link color="#9d3a00">
+                            <xsl:attribute name="external-destination">
+                                <xsl:text>http://dx.doi.org/</xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                                />
+                            </xsl:attribute>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:idno[@type='doi']"
+                            />
+                        </fo:basic-link>
+                        <xsl:text>.</xsl:text>
+                    </fo:block>
+                    <!--   <fo:block page-break-before="always"></fo:block>  -->
+                </fo:flow>
+
+
+            </fo:page-sequence>
+            <fo:page-sequence master-reference="standard" initial-page-number="1">
+
+                <fo:static-content flow-name="xsl-region-before">
+                    <fo:block font-family="Open Sans, helvetica, arial" font-size="6pt" padding="5pt"
+                        text-align="left">
+                        <!--<xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno"/>
+                        <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:author/tei:name"/>
+                        <xsl:text> : </xsl:text>-->
+                     <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"/>
+                        <xsl:text> | ZfdG 2021</xsl:text>
+                        <!--   <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno"/>
+                       <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/> -->
+                        <fo:block>
+                            <fo:leader leader-length="100%" rule-thickness="0.5pt" leader-pattern="rule"
+                            />
+                        </fo:block>
+                    </fo:block>
+                </fo:static-content>
+                <fo:static-content flow-name="xsl-footnote-separator">
+                    <fo:block>
+                        <fo:leader leader-length="50%" rule-thickness="0.5pt" leader-pattern="rule"
+                        />
+                    </fo:block>
+                </fo:static-content>
+
+            <!--    <fo:static-content flow-name="xsl-region-after"> -->
+                 <!--   <fo:block font-family="Open Sans, helvetica, arial" font-size="8pt" text-align="center"><hr/>Seite <fo:page-number/> -->
+                        <!--   <xsl:value-of select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/> -->
+                    <!-- </fo:block> -->
+             <!--   </fo:static-content> -->
+
+                <fo:flow flow-name="xsl-region-body">
+
+
+                    <fo:block font-size="16px" padding-before="25px" text-align="center" font-family="Open Sans, helvetica, arial">
+                        <fo:inline>
+                          
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:forename"/>
+                            <xsl:text> </xsl:text>
+                            <xsl:value-of
+                                select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt/tei:resp/tei:persName/tei:name/tei:surname"
+                            />
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[2]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[3]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[4]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[5]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            
+                            
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[6]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            
+                            
+                            <xsl:if test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]">
+                                <xsl:text>, </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name/tei:forename"/>
+                                <xsl:text> </xsl:text>
+                                <xsl:value-of
+                                    select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:respStmt[7]/tei:resp/tei:persName/tei:name/tei:surname"
+                                />
+                            </xsl:if>
+                            
+
+                        </fo:inline>
+                    </fo:block>
+                
+                    <fo:block font-size="16px" padding-before="10px"  font-family="Open Sans, helvetica, arial" text-align="center" font-weight="bold">
+                    <xsl:apply-templates
+                            select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title/tei:biblStruct/tei:analytic/tei:title[@level]"
+                        />
+                    </fo:block>
+
+                    <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+                        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/>
+                    <fo:block font-size="10px" padding-before="10px"> </fo:block>
+
+
+                    <fo:block>
+                        <fo:block space-before="15pt" font-family="Open Sans, helvetica, arial" font-size="10pt">
+                        <xsl:text>Abstracts</xsl:text>
+                        </fo:block>
+                        <xsl:for-each select="//tei:text">
+                            <xsl:apply-templates/>
+                        </xsl:for-each>
+                    </fo:block>
+                </fo:flow>
+
+            </fo:page-sequence>
+        </fo:root>
+
+    </xsl:template>
+
+
+    <!--   <xsl:template match="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+       <fo:block id="{generate-id()}">
+           <apply-templates/>
+       </fo:block>
+   </xsl:template>
+    
+   <xsl:template match="Inhalt">
+        <fo:block font-size="18pt" font-weight="bold" text-align="center" space-after="6mm">
+            Inhaltsverzeichnis
+        </fo:block>
+        <xsl:for-each select="/tei:TEI/tei:text/tei:body//tei:div/tei:head">
+            <xsl:call-template name="ivz.zeile"></xsl:call-template>
+        </xsl:for-each>
+    </xsl:template>
+   
+   <xsl:template name="ivz.zeile">
+       <fo:block text-align="justify">
+           <fo:table width="160mm">
+               <fo:table-column column-number="1" column-width="10mm">
+                   <fo:table-column column-number="2" column-width="150mm">
+                       <fo:table-body>
+                           <fo:table-row>
+                               <fo:table-cell column-number="1">
+                                   <fo:block>
+                                       <xsl:number level="single" count="/tei:TEI/tei:text/tei:body//tei:div/tei:head" format="1."/>
+                                   </fo:block>
+                               </fo:table-cell>
+                               <fo:table-cell>
+                                   <fo:table-cell column-number="2">
+                                       <fo:block>
+                                           <xsl:value-of select="tei:head"/>
+                                           <fo:inline>
+                                               <fo:leader leader-pattern="/tei:TEI/tei:text/tei:body//tei:div/tei:head">   
+                                               </fo:leader>  
+                                               <fo:page-number-citation ref-id="{generate-id()}"/>
+                                           </fo:inline>
+                                       </fo:block>
+                                   </fo:table-cell>
+                               </fo:table-cell>
+                           </fo:table-row>
+                       </fo:table-body>
+                   </fo:table-column>
+                   <fo:table-body></fo:table-body>
+               </fo:table-column>
+               <fo:table-body></fo:table-body>
+           </fo:table>
+           
+       </fo:block>
+       
+       
+   </xsl:template> -->
+    <xsl:template match="tei:head">
+        <fo:block id="{generate-id()}" space-before="20pt" font-size="12pt"
+            font-weight="bold" text-align="center">
+            <xsl:value-of select="."/>
+        </fo:block>
+    </xsl:template>
+    
+  <xsl:template match="tei:code">
+      <xsl:choose>
+          <xsl:when test="@rend='indent1'">
+              <fo:block font-size="8pt" font-family="Open Sans, helvetica, arial" margin-left="5%" >
+                  <xsl:apply-templates></xsl:apply-templates>
+              </fo:block>
+          </xsl:when>
+          <xsl:when test="@rend='indent2'">
+              <fo:block font-size="8pt" font-family="Open Sans, helvetica, arial" margin-left="10%">
+                  <xsl:apply-templates></xsl:apply-templates><br/>
+              </fo:block>
+          </xsl:when>
+          <xsl:when test="preceding-sibling::tei:lb">
+              
+                  <fo:block><xsl:apply-templates></xsl:apply-templates></fo:block>
+              
+          </xsl:when>
+          <xsl:otherwise> 
+              <xsl:apply-templates></xsl:apply-templates><br/>
+          </xsl:otherwise>
+      </xsl:choose>
+  </xsl:template>
+    
+
+
+    <xsl:template match="tei:p">
+       <xsl:choose>
+  <xsl:when test="tei:quote[@type='grosszitat']">
+            <!-- <fo:block padding-left="25px" margin-top="25px" margin-bottom="25px" border-left="2px solid #efefef" display="block"> -->
+            <fo:block space-before="15pt"  padding-left="25px" space-after="10pt" font-family="Open Sans, helvetica, arial" border-left="2px solid #efefef"
+                    font-size="8pt" line-height="1.5em">
+                <xsl:apply-templates/>
+            </fo:block>
+        </xsl:when>
+        <xsl:otherwise>
+        <fo:block space-before="15pt" space-after="10pt" font-family="Open Sans, helvetica, arial"
+            font-size="8pt" orphans="3"  widows="3" line-height="1.5em">
+            <xsl:apply-templates/>
+        </fo:block>
+        </xsl:otherwise>
+       </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template match="tei:div[@type='abbildungsnachweis']">
+        <fo:block page-break-before="always"></fo:block> 
+        <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+        <xsl:apply-templates></xsl:apply-templates>
+    </xsl:template>
+    
+    
+<xsl:template match="tei:div[@type='bibliography']">
+     <fo:block page-break-before="always"></fo:block>
+    <fo:block id="appendix-a"/>
+   <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+    <xsl:apply-templates></xsl:apply-templates>
+    <fo:block id="appendix-b"/>
+</xsl:template>
+    
+    <xsl:template match="tei:div[@type='bibliography2']">
+     
+        <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+        <xsl:apply-templates></xsl:apply-templates>
+
+    </xsl:template>
+    
+    <xsl:template match="tei:div[@type='glossar']">
+        <fo:block page-break-before="always"></fo:block> 
+        <!-- <fo:block border-bottom-width="0.5pt" padding-before="5px" padding-after="10px"
+        border-bottom-style="solid" border-bottom-color="black" font-weight="bold"/> -->
+        <xsl:apply-templates></xsl:apply-templates>
+    </xsl:template>
+
+    <xsl:template match="tei:argument/tei:p">
+
+        <fo:block space-before="15pt" space-after="10pt" text-indent="5mm" font-family="Open Sans, helvetica, arial" line-height="0.75em">
+            <fo:inline font-size="8pt" >
+           
+                <xsl:apply-templates/>
+            </fo:inline>
+        </fo:block>
+    </xsl:template>
+
+    <xsl:template match="tei:pb">
+        <fo:inline font-size="10pt">
+            <xsl:text> || </xsl:text>
+            <xsl:text> [</xsl:text>
+            <xsl:choose>
+                <xsl:when test="@n">
+                    <xsl:value-of select="@n"/>
+                </xsl:when>
+            </xsl:choose>
+            <xsl:text>] </xsl:text>
+        </fo:inline>
+    </xsl:template>
+
+    <xsl:template match="tei:note">
+
+        <xsl:choose>
+            <xsl:when test="@type='annotation'">
+                <fo:footnote>
+                    <fo:inline font-size="75%" baseline-shift="super">
+                        <xsl:number level="single" format="a" count="tei:note[@type ='annotation']"
+                        />
+                    </fo:inline>
+                    <fo:footnote-body font-family="Open Sans, helvetica, arial" font-size="8pt" font-weight="normal"
+                        font-style="normal" text-align="justify" >
+                        <fo:block >
+                            <fo:inline font-size="75%" baseline-shift="super">
+                                <xsl:number level="single" format="a"
+                                    count="tei:note[@type ='annotation']"/>
+                            </fo:inline>
+                            <xsl:apply-templates/>
+                        </fo:block>
+                    </fo:footnote-body>
+                </fo:footnote>
+            </xsl:when>
+        </xsl:choose>
+        <xsl:choose>
+            <xsl:when test="@type='footnote'">
+                <fo:footnote>
+                    <fo:inline font-size="45%" baseline-shift="super">
+                        <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+                    </fo:inline>
+                    <fo:footnote-body font-family="Open Sans, helvetica, arial" font-size="7pt" font-weight="normal"
+                        font-style="normal" line-height="1.0em">
+                        <fo:block text-indent="0" >
+                            <fo:inline baseline-shift="super" font-size="45%" >
+                                <xsl:number level="any" count="tei:note[@type ='footnote']"/>
+                            </fo:inline>
+                            <xsl:apply-templates/>
+                        </fo:block>
+                    </fo:footnote-body>
+                </fo:footnote>
+            </xsl:when>
+
+        </xsl:choose>
+
+        <xsl:choose>
+            <xsl:when test="@type='commentar'">
+                <fo:block space-before="15pt" space-after="10pt"
+                    font-family="Open Sans, helvetica, arial" font-size="10pt">
+                    <xsl:apply-templates/>
+                </fo:block>
+            </xsl:when>
+        </xsl:choose>
+        <!-- ENDNOTEN  
+            <xsl:choose>
+            <xsl:when test="@type='footnote'">
+                <fo:block><fo:leader leader-pattern="rule"/></fo:block> <xsl:apply-templates select="." mode="endnote"/>
+            </xsl:when>
+        </xsl:choose>-->
+        <xsl:choose>
+            <xsl:when test="@type='textapparat'">
+                <fo:block space-before="15pt" space-after="10pt"
+                    font-family="Open Sans, helvetica, arial" font-size="10pt">
+                    <xsl:apply-templates/>
+                </fo:block>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+
+<xsl:template match="tei:list">
+    <xsl:choose>
+        <xsl:when test="@type='unordered'">
+            <!-- list start -->
+            <fo:list-block >
+                <!-- list item -->
+                <xsl:for-each select="tei:item">                <fo:list-item>
+                    <!-- insert a bullet -->
+                    <fo:list-item-label end-indent="label-end()">
+                        <fo:block>
+                            <fo:inline></fo:inline>
+                        </fo:block>
+                    </fo:list-item-label>
+                    <!-- list text -->
+                    <fo:list-item-body>
+                        <fo:block font-family="Open Sans, helvetica, arial"
+                            font-size="8pt" line-height="1.5em">
+                          <xsl:text>- </xsl:text><xsl:apply-templates select="."></xsl:apply-templates>
+                        </fo:block>
+                    </fo:list-item-body>
+                </fo:list-item>
+                </xsl:for-each>
+                
+            </fo:list-block>
+            <!-- end list -->
+        </xsl:when>
+        
+        <xsl:when test="@type='gloss'">
+           
+          
+                    <fo:table>
+                        <fo:table-body>
+                            <xsl:for-each select="tei:label">
+                             <fo:table-row>
+                           
+                                 <fo:table-cell width="60mm" padding-top="10px"> <fo:block 
+                                     font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:term"></xsl:apply-templates></fo:block></fo:table-cell>                       
+                                 <fo:table-cell padding-top="10px"><fo:block 
+                                     font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="following-sibling::tei:item[position()=1]/tei:gloss"></xsl:apply-templates></fo:block></fo:table-cell>
+                                 
+                               
+                             </fo:table-row>
+                           
+                            </xsl:for-each>     
+                            
+                        </fo:table-body>
+                    </fo:table>
+                    
+                
+                
+            <!-- end list -->
+       
+        </xsl:when>
+        
+        <xsl:when test="@type='ordered'">
+            <!-- list start -->
+            <fo:list-block >
+                <!-- list item -->
+                <xsl:for-each select="tei:item">                <fo:list-item>
+                    <!-- insert a bullet -->
+                    <fo:list-item-label end-indent="label-end()">
+                        <fo:block>
+                            <fo:inline></fo:inline>
+                        </fo:block>
+                    </fo:list-item-label>
+                    <!-- list text -->
+                    <fo:list-item-body start-indent="body-start()">
+                   
+                        <fo:block font-family="Open Sans, helvetica, arial"
+                            font-size="8pt" line-height="1.5em">
+                            <xsl:number count="tei:item" format="1." /><xsl:text> </xsl:text>
+                           <xsl:apply-templates select="."></xsl:apply-templates>
+                        </fo:block>
+                    </fo:list-item-body>
+                </fo:list-item>
+                </xsl:for-each>
+                
+            </fo:list-block>
+            <!-- end list -->
+        </xsl:when>
+    </xsl:choose>
+</xsl:template>
+
+<xsl:template match="tei:table">
+    
+    <fo:table>
+        <fo:table-body>
+            <xsl:for-each select="tei:row">
+                <fo:table-row>
+                    <fo:table-cell width="50mm" padding-top="10px" border-style="solid" border-width="0.5pt"> <fo:block 
+                        font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:cell[1]"></xsl:apply-templates></fo:block></fo:table-cell>                       
+                    <fo:table-cell width="50mm" padding-top="10px" border-style="solid" border-width="0.5pt"><fo:block 
+                        font-family="Open Sans, helvetica, arial" font-size="8pt"><xsl:apply-templates select="tei:cell[2]"></xsl:apply-templates></fo:block></fo:table-cell>
+                </fo:table-row>
+                
+            </xsl:for-each>     
+            
+        </fo:table-body>
+    </fo:table>
+</xsl:template>
+    
+  <xsl:template match="tei:graphic">
+        <xsl:choose>
+            <xsl:when test="@url">
+                <hr/>
+                <fo:block id="{@xml:id}" margin-left="150px" >
+                    
+                   <fo:inline font-size="8pt"  font-family="Open Sans, helvetica, arial">
+                        <xsl:element name="fo:external-graphic">
+                            <xsl:attribute name="src">
+                                <xsl:text>http://www.zfdg.de/sites/default/files/</xsl:text><xsl:value-of select="substring-after(@url, '.../')"/>                      
+                            </xsl:attribute>
+             
+                      <xsl:attribute name="content-width">300px</xsl:attribute>
+                            <xsl:attribute name="content-height">250px</xsl:attribute>
+                  
+                           
+                            
+                        </xsl:element>
+                    </fo:inline>
+                </fo:block>
+                <xsl:for-each select="tei:desc">
+                    <fo:block line-height="1.0em" text-indent="0">
+                    <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                    <xsl:apply-templates select="."/>
+                    </fo:inline>
+                    </fo:block>
+                </xsl:for-each>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+
+  <xsl:template match="tei:figure/tei:media">
+        <xsl:choose>
+            <xsl:when test="@type='svg'">
+                <xsl:choose>
+            <xsl:when test="@url">
+                <hr/>           
+                <fo:block id="{@xml:id}" margin-left="150px">       
+                    <fo:inline font-size="8pt"  font-family="Open Sans, helvetica, arial">
+                        <xsl:element name="fo:external-graphic">
+                            <xsl:attribute name="src">
+                                <xsl:text>medien/</xsl:text><xsl:value-of select="substring-before(substring-after(@url, '.../medien/svg/'), '.svg')"/><xsl:text>.jpg</xsl:text>                      
+                            </xsl:attribute>                            
+                            <xsl:attribute name="content-width">300px</xsl:attribute>
+                            <xsl:attribute name="content-height">250px</xsl:attribute>
+                        </xsl:element>
+                    </fo:inline>
+                </fo:block>
+                <xsl:for-each select="tei:desc">
+                    <fo:block line-height="1.0em" text-indent="0">
+                        <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                            <xsl:apply-templates select="."/>
+                        </fo:inline>
+                    </fo:block>
+                </xsl:for-each>
+            </xsl:when>
+                </xsl:choose>
+            </xsl:when>
+            <xsl:when test="@type='video'">
+
+                        <hr/>           
+  
+                        <xsl:for-each select="tei:desc">
+                            <fo:block line-height="1.0em" text-indent="0">
+                                <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                                    <xsl:apply-templates select="."/>
+                                </fo:inline>
+                            </fo:block>
+                        </xsl:for-each>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+<xsl:template match="tei:lg">
+    <xsl:for-each select="tei:l">
+        <fo:block line-height="1.0em" text-indent="0">
+            <fo:inline font-size="7pt" font-family="Open Sans, helvetica, arial">
+                <xsl:apply-templates select="."/>
+            </fo:inline>
+        </fo:block>
+    </xsl:for-each>
+</xsl:template>
+    
+    <xsl:template match="tei:milestone">
+        <fo:block page-break-before="always"></fo:block>
+    </xsl:template>
+    
+
+    <xsl:template match="tei:ref">
+
+        <xsl:choose>
+
+            <xsl:when test="@type='bibliography'">
+
+
+                <fo:basic-link internal-destination="appendix-a" color="grey">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+
+
+
+
+            </xsl:when>
+            <xsl:when test="@type='graphic'">
+                <xsl:variable name="graphic">
+                    <xsl:value-of select="substring-after(@target, '#')"/>
+                </xsl:variable>
+
+                <fo:basic-link internal-destination="{$graphic}" color="grey" font-family="Open Sans, helvetica, arial" line-height="1.0em">
+                    <xsl:value-of select="."/>
+                </fo:basic-link>
+
+
+
+
+            </xsl:when>
+            <xsl:when test="@type='intern'">
+        
+                  
+                    <xsl:apply-templates/>
+                
+            </xsl:when>
+            <xsl:otherwise>
+
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </fo:basic-link>
+            </xsl:otherwise>
+        </xsl:choose>
+
+
+    </xsl:template>
+
+    <xsl:template match="tei:ref[parent::tei:desc]">
+        <xsl:choose>
+            <xsl:when test="@type='extern'">
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination">
+                        <xsl:value-of select="@target"/>
+                    </xsl:attribute>
+                    <xsl:apply-templates/>
+                </fo:basic-link>
+            </xsl:when>
+            <xsl:otherwise>
+                <fo:basic-link internal-destination="appendix-b" color="grey">
+                 
+                        <xsl:value-of select="."/>
+                    
+                </fo:basic-link>
+
+            </xsl:otherwise>
+        </xsl:choose>
+
+    </xsl:template>
+
+    <xsl:template match="tei:hi">
+        <xsl:choose>
+            <xsl:when test="@rend ='italics' or @rend ='italic'">
+                    <fo:inline font-family="Open Sans, helvetica, arial,sans-serif" font-style="italic">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:when test="@rend='latin'">
+                <span style="font-family:junicode"><xsl:apply-templates></xsl:apply-templates></span>
+            </xsl:when>
+            <xsl:when test="@rend ='sans_serif'">
+                <fo:inline font-family="Open Sans, helvetica, arial,sans-serif;"><xsl:apply-templates/></fo:inline>
+            </xsl:when>
+        <xsl:when test="@rend ='bold'">
+             <fo:inline font-weight="bold">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when> 
+            <xsl:when test="@rend ='smallCaps' or @rend ='small-caps'">
+                <fo:inline font-variant="small-caps;">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:when test="@rendition ='sup'">
+                <fo:inline text-decoration="sup"  font-family="Open Sans, helvetica, arial,sans-serif;">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:when test="@rendition ='sub'">
+                <fo:inline vertical-align="sub"  font-family="Open Sans, helvetica, arial,sans-serif;">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:apply-templates/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:bibl">
+        <xsl:choose>
+            <xsl:when test="child::tei:title[@type='desc']">
+                <fo:inline font-family="Open Sans, helvetica, arial" font-style="italic" font-size="8pt"><xsl:apply-templates select="tei:title"></xsl:apply-templates></fo:inline>
+            </xsl:when>
+            <xsl:otherwise>
+                <fo:inline font-size="10pt" font-family="Open Sans, helvetica, arial">
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:foreign">
+        <xsl:choose>
+            <xsl:when test="@xml:lang='ara'">
+                <fo:inline font-family="Arabic Typesetting, Open Sans"> 
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:when>
+            <xsl:otherwise>
+                <fo:inline font-family="arial"> 
+                    <xsl:apply-templates/>
+                </fo:inline>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+
+    <xsl:template match="tei:listBibl">
+        <xsl:choose>
+            <xsl:when test=" parent::tei:div[@type='bibliography']"> 
+ 
+            <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial">
+                <xsl:for-each select="tei:bibl">
+                    <fo:list-item>
+                        <fo:list-item-label>
+                            <fo:block> </fo:block>
+                        </fo:list-item-label>
+                        <fo:list-item-body>
+                            <fo:block font-size="10px" padding-before="10px">
+
+                                <xsl:apply-templates/>
+                            </fo:block>
+                        </fo:list-item-body>
+                    </fo:list-item>
+                </xsl:for-each>
+            </fo:list-block>
+            </xsl:when>
+         <xsl:otherwise>
+                <fo:block>
+                    <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial">
+                        <xsl:for-each select="tei:bibl">
+                            <fo:list-item>
+                                <fo:list-item-label>
+                                    <fo:block> </fo:block>
+                                </fo:list-item-label>
+                                <fo:list-item-body>
+                                    <fo:block font-size="10px" padding-before="10px">
+                                        
+                                        <xsl:apply-templates/>
+                                    </fo:block>
+                                </fo:list-item-body>
+                            </fo:list-item>
+                        </xsl:for-each>
+                    </fo:list-block>
+                </fo:block>
+         </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template match="tei:ptr">
+        <xsl:apply-templates/>
+        <xsl:choose>
+            <xsl:when test="@type='opac' ">
+                <xsl:text>[</xsl:text>
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination"> <xsl:value-of select="$opac"
+                            /><xsl:value-of select="@cRef"/></xsl:attribute>
+                    <xsl:text>
+Nachweis im OPAC</xsl:text>
+                </fo:basic-link>
+                <xsl:text>]</xsl:text>
+            </xsl:when>
+            <xsl:when test="@type='gbv'">
+                <xsl:text>[</xsl:text><fo:basic-link color="#9d3a00"><xsl:attribute name="external-destination"><xsl:value-of select="$gbv"/><xsl:value-of select="@cRef"/></xsl:attribute>
+<xsl:text>Nachweis im GBV</xsl:text></fo:basic-link><xsl:text>]</xsl:text>
+            </xsl:when>
+            <xsl:when test="@type='varia' ">
+                <fo:basic-link color="#9d3a00">
+                    <xsl:attribute name="external-destination">
+                        <xsl:value-of select="@cRef"/>
+                    </xsl:attribute>
+                    <xsl:text>
+[online]</xsl:text>
+                </fo:basic-link>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+
+
+
+    <xsl:template match="tei:desc[@type='graphic']">
+
+        <fo:block>
+            <fo:list-block font-size="10pt" font-family="Open Sans, helvetica, arial">
+                <xsl:for-each select=".">
+                    <fo:list-item>
+                        <fo:list-item-label>
+                            <fo:block> </fo:block>
+                        </fo:list-item-label>
+                        <fo:list-item-body>
+                            <fo:block font-size="10px" padding-before="10px">
+                                <xsl:variable name="graphic2">
+                                    <xsl:value-of
+                                        select="substring-after(tei:ref[@type='graphic']/@target, '#')"
+                                    />
+                                </xsl:variable>                      
+                                <fo:basic-link internal-destination="{$graphic2}" color="grey">
+                                    <xsl:text>Abb. </xsl:text><xsl:number count="tei:desc[@type='graphic']"></xsl:number></fo:basic-link><xsl:text>: </xsl:text><xsl:apply-templates/>
+                            </fo:block>
+                        </fo:list-item-body>
+                    </fo:list-item>
+                </xsl:for-each>
+            </fo:list-block>
+        </fo:block>
+    </xsl:template>
+
+    <xsl:template match="tei:quote">
+        <xsl:text>&#147;</xsl:text>
+        <xsl:apply-templates/>
+        <xsl:text>&#148;</xsl:text>
+        
+    </xsl:template>
+    
+
+   
+
+
+</xsl:stylesheet>
diff --git a/skripte/2022/zfdg_xml2xml__transform.xsl b/skripte/2022/zfdg_xml2xml__transform.xsl
new file mode 100644
index 0000000000000000000000000000000000000000..02cc1a98e72b48f3c4dfbe355bb5c4d78867453f
--- /dev/null
+++ b/skripte/2022/zfdg_xml2xml__transform.xsl
@@ -0,0 +1,522 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet xmlns:html="http://www.w3.org/1999/html" xmlns:tei="http://www.tei-c.org/ns/1.0"
+    xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+    xmlns="http://www.tei-c.org/ns/1.0" version="1.0">
+    
+    <xsl:output method="xml" version="1.0" omit-xml-declaration="no" encoding="utf-8" indent="yes"/>
+    
+    <xsl:template match="/">
+        <xsl:processing-instruction name="xml-model">
+        href="https://www.zfdg.de/sites/default/files/schema/tei_zfdg.rnc" type="application/relax-ng-compact-syntax"
+    </xsl:processing-instruction> 
+        
+        <TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:html="http://www.w3.org/1999/html"
+            xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xlink="http://www.w3.org/1999/xlink"
+            xmlns:xhtml="http://www.w3.org/1999/xhtml">
+            <teiHeader>
+                <fileDesc>
+                    <titleStmt>
+                        <title>
+                            <biblStruct>
+                                <analytic>
+                                    <title level="a"><xsl:value-of select="/tei:TEI/tei:text/tei:body/tei:p[@rend='Titel_zfdg']"/></title>  
+                                    <respStmt>
+                                        <resp>
+                                            <persName>
+                                                <name role="marc_aut">
+                                                    <forename>Vorname Artikelautor 1</forename>
+                                                    <surname>Nachname Vorname Artikelautor 1</surname>
+                                                </name>
+                                                <email>Mail Artikelautor 1</email>
+                                                <idno type="gnd">GND-Nummer Artikelautor 1</idno>
+                                                <idno type="orcid">ORCID Artikelautor 1</idno>
+                                            </persName>
+                                        </resp>
+                                        <orgName>Organisation Artikelautor 1</orgName>
+                                    </respStmt>
+                                    <!-- respStmt wiederholen, wenn mehrere Artikelautoren vorliegen -->                         
+                                    <idno type="doi">10.17175/sb005_xxx</idno>
+                                    <idno type="ppn">PPN des Aufsatzes</idno>
+                                    <idno type="zfdg">2022.00x</idno>
+                                    <idno type="url">https://www.zfdg.de/node/xxx</idno>
+                                    <date when="2022-09-08">dd.mm.2022</date>
+                                </analytic>
+                                <monogr> <!-- komplette Titelei überarbeiten -->
+                                    <title level="j">Zeitschrift für digitale Geisteswissenschaften</title>
+                                    <title level="m">Sonderband: Fabrikation von Erkenntnis – Experimente in den Digital Humanities.</title>
+                                    <respStmt>
+                                        <resp>
+                                            <name role="marc_edt">
+                                                <forename>Manuel</forename>
+                                                <surname>Burghardt</surname>
+                                            </name>
+                                            <email>burghardt@informatik.uni-leipzig.de</email>
+                                            <idno type="gnd">1237665523</idno>
+                                            <idno type="orcid">0000-0003-1354-9089</idno>
+                                        </resp>
+                                        <orgName>Universität Leipzig</orgName>           
+                                    </respStmt>
+                                    
+                                    <respStmt>
+                                        <resp>
+                                            <name role="marc_edt">
+                                                <forename>Lisa</forename>
+                                                <surname>Dieckmann</surname>
+                                            </name>
+                                            <email>lisa.dieckmann@uni-koeln.de</email>
+                                            <idno type="gnd">1077268289</idno>
+                                            <idno type="orcid">0000-0002-1708-7371</idno>
+                                        </resp>
+                                        <orgName>Universität zu Köln</orgName>           
+                                    </respStmt>
+                                    <respStmt>
+                                        <resp><name role="marc_edt">
+                                            <surname>Timo</surname>
+                                            <forename>Steyer</forename>  
+                                        </name>                      
+                                        <email>t.steyer@tu-braunschweig.de</email>
+                                        <idno type="gnd">1053806175</idno>
+                                        <idno type="orcid">0000-0003-0218-2269</idno>
+                                        </resp>
+                                        <orgName>Technische Universität Braunschweig</orgName>
+                                    </respStmt>
+                                    
+                                    <respStmt>
+                                        <resp>
+                                            <name role="marc_edt">
+                                                <forename>Peer</forename>
+                                                <surname>Trilcke</surname>
+                                            </name>
+                                            <email>trilcke@uni-potsdam.de</email>
+                                            <idno type="gnd">139145117</idno>
+                                            <idno type="orcid">0000-0002-1421-4320</idno>
+                                        </resp>
+                                        <orgName>Universität Potsdam</orgName>           
+                                    </respStmt>
+                                    
+                                    <respStmt>
+                                        <resp>
+                                            <name role="marc_edt">
+                                                <forename>Niels-Oliver</forename>
+                                                <surname>Walkowski</surname>
+                                            </name>
+                                            <email>niels-oliver.walkowski@uni.lu</email>
+                                            <idno type="gnd">1023378671</idno>
+                                            <idno type="orcid">0000-0003-3043-3010</idno>
+                                        </resp>
+                                        <orgName>Universität Luxemburg</orgName>           
+                                    </respStmt>
+                                    <respStmt>
+                                        <resp>
+                                            <name role="marc_edt">
+                                                <forename>Joëlle</forename>
+                                                <surname>Weis</surname>
+                                            </name>
+                                            <email>weis@hab.de</email>
+                                            <idno type="gnd">1233399721</idno>
+                                            <idno type="orcid">0000-0002-0080-4362</idno>
+                                        </resp>
+                                        <orgName>Forschungsverbund Marbach Weimar Wolfenbüttel</orgName>           
+                                    </respStmt>
+                                    <respStmt>
+                                        <resp>
+                                            <name role="marc_edt">
+                                                <forename>Ulrike</forename>
+                                                <surname>Wuttke</surname>
+                                            </name>
+                                            <email>wuttke@fhpotsdam.de</email>
+                                            <idno type="gnd">1107808405</idno>
+                                            <idno type="orcid">0000-0002-8217-4025</idno>
+                                        </resp>
+                                        <orgName>Fachhochschule Potsdam</orgName>           
+                                    </respStmt>
+                                    
+                                    
+                                    <respStmt>
+                                        <resp>Publiziert von</resp>
+                                        <orgName role="marc_pbl">Herzog August Bibliothek</orgName>
+                                    </respStmt>
+                                    <respStmt>
+                                        <resp>Transformation der Word Vorlage nach TEI</resp>
+                                        <name role="marc_trc">
+                                            <surname>Baumgarten</surname>
+                                            <forename>Marcus</forename>
+                                            <idno type="gnd">1192832655</idno>
+                                        </name>
+                                    </respStmt>                                    
+                                    <availability status="free">
+                                        <p>Available at <ref target="http://www.zfdg.de"
+                                            >https://www.zfdg.de</ref></p>
+                                    </availability>
+                                    <biblScope unit="sonderband">5</biblScope>
+                                    <biblScope unit="artikel">x</biblScope>
+                                </monogr>
+                            </biblStruct>
+                        </title>
+                    </titleStmt>
+                    <editionStmt>
+                        <edition>Elektronische Ausgabe nach TEI P5</edition>
+                    </editionStmt>
+                    <publicationStmt>
+                        <!-- Publikationsangaben zum Sonderband-->
+                        <distributor>
+                            <name><orgName>Herzog August Bibliothek Wolfenbüttel</orgName></name>
+                        </distributor>
+                        <idno type="doi">10.17175/sb005</idno>
+                        <idno type="ppn">1764792149</idno>
+                        <idno type="url">https://www.zfdg.de/sonderband/5</idno>
+                        <date when="2022-09-19">2022</date>
+                        <authority><name>Herzog August Bibliothek</name><address>
+                            <addrLine/>
+                        </address></authority>
+                        <authority><name>Forschungsverbund MWW</name><address>
+                            <addrLine/>
+                        </address></authority>
+                        <availability status="free">
+                            <p> Sofern nicht anders angegeben </p>
+                            <licence target="http://creativecommons.org/licenses/by/4.0/">CC BY SA
+                                4.0</licence>
+                        </availability>
+                        <availability status="free">
+                            <p> Available at <ref target="workID">https://www.zfdg.de"&gt; (c)
+                                Forschungsverbund MWW</ref>
+                            </p>
+                        </availability>
+                    </publicationStmt>
+                    <sourceDesc>
+                        <p>Einreichung zum Call for Publications im Rahmen der vDHd21.</p>
+                    </sourceDesc>
+                </fileDesc>
+                <encodingDesc>
+                    <!-- Angaben  zur Enstehung des Textes -->
+                    <editorialDecl>
+                        <p>Transformation der WORD-Vorlage nach XML/TEI-P5 durch die Oxgarage und eigenen
+                            XSLT; Lektorat des Textes durch die Herausgeber*innen und die Redaktion der ZfdG.</p>
+                        <p>Medienrechte liegen bei den Autor*innen.</p>
+                        <p>All links checked<date when="2022">dd.mm.2022</date></p>
+                    </editorialDecl>
+                    
+                </encodingDesc>
+                <profileDesc>
+                    <creation>Einreichung für den Sonderband 5 der Zeitschrift für digitale
+                        Geisteswissenschaften.</creation>
+                    <langUsage>
+                        <language ident="de">Text in Deutsch</language>
+                        <language ident="de">Abstract in Deutsch</language>
+                        <language ident="en">Abstract in Englisch</language>
+                    </langUsage>
+                    <!-- Verschlagwortung -->                                        
+                    <!-- gnd -->
+                    <textClass>
+                        <keywords scheme="gnd">
+                            <term>Schlagwort<ref target="GND-Nr."/></term>
+                            <term>Schlagwort<ref target="GND-Nr."/></term>
+                            <term>Schlagwort<ref target="GND-Nr."/></term>
+                            <term>Schlagwort<ref target="GND-Nr."/></term>
+                            <term>Schlagwort<ref target="GND-Nr."/></term>
+                        </keywords>
+                    </textClass>
+                </profileDesc>
+                <!-- Angaben zur vorliegenden Version -->
+                <revisionDesc>
+                    <change><!-- Each change should include @who and @when as well as a brief note on what was done. --></change>
+                </revisionDesc>
+            </teiHeader>   
+            <text>
+                <body>
+                    <div>
+                        <xsl:apply-templates select="tei:TEI/tei:text/tei:body"></xsl:apply-templates>
+                        
+                    </div>
+                </body>
+            </text>
+        </TEI>
+    </xsl:template>
+    
+    <xsl:template match="tei:body">
+        <xsl:apply-templates select="tei:p |tei:list|tei:table"/>
+    </xsl:template>
+    
+    <xsl:template match="tei:p">
+        <xsl:choose>
+            <xsl:when test="@rend='Kapitel_Überschrift_zfdg'">
+                <div type="chapter">
+                    <xsl:element name="head"><xsl:apply-templates /></xsl:element> 
+                </div>
+            </xsl:when>
+            <xsl:when test="@rend='Text_zfdg'">
+                
+                <xsl:element name="p"><xsl:apply-templates /></xsl:element> 
+            </xsl:when>
+            <xsl:when test="@rend='zfdg-motto'">                
+                <xsl:element name="p">
+                    <xsl:attribute name="rendition">motto</xsl:attribute>
+                    <xsl:apply-templates />
+                </xsl:element> 
+            </xsl:when>
+            
+            <xsl:when test="@rend='zfdg-text'">                
+                <xsl:element name="p">
+                    <xsl:apply-templates></xsl:apply-templates>
+                </xsl:element> 
+            </xsl:when>
+            
+            <xsl:when test="@rend='Großzitat_zfdg'">
+                <xsl:element name="p">
+                    <xsl:element name="quote">
+                        <xsl:attribute name="type">grosszitat</xsl:attribute>
+                        <xsl:apply-templates/>
+                    </xsl:element>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="@rend='Zitat_zfdg'">
+                <xsl:element name="p">
+                    <xsl:element name="quote">
+                        <xsl:apply-templates/>
+                    </xsl:element>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="@rend='Abbildung_zfdg'">
+                <xsl:element name="figure">
+                    <xsl:element name="graphic">
+                        <xsl:attribute name="xml:id">
+                            <xsl:text>bildnummer eintragen</xsl:text>
+                        </xsl:attribute>
+                        <xsl:attribute name="url">
+                            <xsl:text>.../medien/</xsl:text>
+                        </xsl:attribute>
+                    <xsl:element name="desc">
+                        <xsl:element name="ref">
+                            <xsl:attribute name="target">
+                                <xsl:text>#</xsl:text>
+                                <xsl:value-of select="."/>
+                            </xsl:attribute>
+                            <xsl:value-of select="."/>
+                        </xsl:element>
+                    </xsl:element>
+                </xsl:element></xsl:element> 
+            </xsl:when>
+            <xsl:when test="@rend='Fußnoten_zfdg'">
+                <xsl:apply-templates></xsl:apply-templates>
+            </xsl:when>           
+            <xsl:when test="@rend='Bibliographie_zfdg'">
+                <xsl:element name="bibl"><xsl:apply-templates></xsl:apply-templates></xsl:element>
+            </xsl:when>
+            <xsl:when test="@rend='Abb_Legende_zfdg'">
+                <xsl:element name="desc"><xsl:attribute name="type"><xsl:text>graphic</xsl:text></xsl:attribute><xsl:attribute name="xml:id"><xsl:text>abb</xsl:text><xsl:number count="tei:desc[@type='graphic']"></xsl:number></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element>
+            </xsl:when>
+            <xsl:when test="@rend='Liste_unsortiert_zfdg'">
+                <xsl:element name="list"><xsl:attribute name="type"><xsl:text>unordered</xsl:text></xsl:attribute>
+                    <item><xsl:apply-templates></xsl:apply-templates></item>
+                </xsl:element>
+            </xsl:when>
+            
+            <xsl:when test="@rend='Liste-nummeriert_zfdg'">
+                <xsl:element name="list"><xsl:attribute name="type"><xsl:text>ordered</xsl:text></xsl:attribute>
+                    <item><xsl:apply-templates></xsl:apply-templates></item>
+                </xsl:element>
+            </xsl:when>
+        </xsl:choose>
+        
+        <xsl:choose>         
+            <xsl:when test="contains(@rend, 'Abstract_zfdg')">
+                <div type="abstract">
+                    <argument xml:lang="de">
+                        <xsl:element name="p"><xsl:apply-templates></xsl:apply-templates></xsl:element>        
+                    </argument>
+                </div>
+            </xsl:when>
+            
+        </xsl:choose>
+        
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="tei:note[@place='foot']">
+        <xsl:element name="note">
+            <xsl:attribute name="type">footnote</xsl:attribute>
+            <xsl:apply-templates />
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="tei:seg">
+        <xsl:choose>
+            <xsl:when test="@rend='italic'">
+                <xsl:element name="hi"><xsl:attribute name="rend">italic</xsl:attribute><xsl:apply-templates/></xsl:element>
+            </xsl:when>
+            <xsl:otherwise><xsl:apply-templates></xsl:apply-templates></xsl:otherwise>
+        </xsl:choose>   
+    </xsl:template>
+    
+    <xsl:template match="tei:list">
+        <xsl:choose>
+            <xsl:when test="@type='unordered'">
+                <xsl:element name="list"><xsl:attribute name="type"><xsl:text>unordered</xsl:text></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element>
+            </xsl:when>
+            <xsl:when test="@type='ordered'">
+                <xsl:element name="list"><xsl:attribute name="type"><xsl:text>ordered</xsl:text></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element>
+            </xsl:when>
+            <xsl:otherwise><xsl:element name="list"><xsl:apply-templates></xsl:apply-templates></xsl:element></xsl:otherwise>
+        </xsl:choose>
+        
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="tei:item">
+        <xsl:element name="item"><xsl:apply-templates></xsl:apply-templates></xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="tei:hi">
+        <xsl:choose>
+            <xsl:when test="@rend ='italics' or @rend ='italic'">
+                <xsl:element name="hi"><xsl:attribute name="rend">italic</xsl:attribute><xsl:apply-templates/></xsl:element>
+            </xsl:when>
+            
+            <xsl:when test="@rend ='Link_zfdg'">
+                <ref>
+                    <xsl:attribute name="target">
+                        <xsl:value-of select="."/>
+                    </xsl:attribute>
+                    <xsl:value-of select="."/>
+                </ref>                
+            </xsl:when>
+            
+            <xsl:when test="@rend ='zfdg-fußnote-link'">
+                <ref>
+                    <xsl:attribute name="target">
+                        <xsl:value-of select="."/>
+                    </xsl:attribute>
+                    <xsl:value-of select="."/>
+                </ref>                
+            </xsl:when>
+                
+            
+            <xsl:when test="@rend ='color(222222)'">
+                
+                <xsl:value-of select="."/>
+                
+            </xsl:when>
+            <xsl:when test="@rend ='Werktitel_zfdg'">
+                <bibl><title type="desc"><xsl:apply-templates></xsl:apply-templates></title></bibl>
+            </xsl:when> 
+            <xsl:when test="@rend ='zfdg-institution'">
+                <term type="corporate" ref="LINK"><xsl:apply-templates></xsl:apply-templates></term>
+            </xsl:when>    
+            <xsl:when test="@rend ='Fachbegriff_zfdg'">
+                <term type="dh"><xsl:apply-templates></xsl:apply-templates></term>
+            </xsl:when>
+            <xsl:when test="@rend ='zfdg-dh-begriffe'">
+                <emph><xsl:apply-templates></xsl:apply-templates></emph>
+            </xsl:when>
+            <xsl:when test="@rend ='Betonung_text_zfdg'">
+                <hi rend="italic"><xsl:apply-templates></xsl:apply-templates></hi>
+            </xsl:when> 
+            <xsl:when test="@rend ='Fettdruck_text_zfdg'">
+                <hi rend="bold"><xsl:apply-templates></xsl:apply-templates></hi>
+            </xsl:when> 
+            <xsl:when test="@rend='Code_zfdg'">
+                <code><xsl:apply-templates/></code>
+            </xsl:when>
+            <xsl:when test="@rend='Term_zfdg_Zchn'"><term type="figure">
+                <xsl:apply-templates></xsl:apply-templates></term>
+            </xsl:when>  
+            <xsl:when test="@rend='Name_zfdg'"><term type="name">
+                <xsl:apply-templates></xsl:apply-templates></term>
+            </xsl:when>  
+            <xsl:when test="@rend ='Kap_Verweis_zfdg'">
+                <ref type="intern" target="#hd"><xsl:apply-templates></xsl:apply-templates></ref>
+            </xsl:when>
+            
+            <xsl:when test="@style='font-size:11.5pt'">
+                <xsl:value-of select="."/>
+            </xsl:when>
+            
+            <xsl:when test="@style='font-size:8pt'">
+                <xsl:value-of select="."/>
+            </xsl:when>
+            
+            <!-- Template hinzugefügt von MB am 9.12.2020 -->
+            
+            <!--<xsl:when test="'Fußnotenanker'">
+                <xsl:apply-templates></xsl:apply-templates>
+            </xsl:when>-->
+            <xsl:when test="@rend ='Abb_Verweis_zfdg'">
+                <ref type="graphic" target="#Abbildungslink"><xsl:apply-templates></xsl:apply-templates></ref>
+            </xsl:when> 
+            
+            
+            <xsl:when test="@rend ='Kap_Verweis_zfdg'">
+                <ref type="graphic" target="#Abbildungslink"><xsl:apply-templates></xsl:apply-templates></ref>
+            </xsl:when>    
+            
+            <!-- hinzugefügt MB am 9.6.22 -->
+            <xsl:when test="@rend='Abb_Legende_zfdg'">
+                <xsl:element name="desc"><xsl:attribute name="type"><xsl:text>graphic</xsl:text></xsl:attribute><xsl:attribute name="xml:id"><xsl:text>abb</xsl:text><xsl:number count="tei:desc[@type='graphic']"></xsl:number></xsl:attribute><xsl:apply-templates></xsl:apply-templates></xsl:element>
+            </xsl:when>
+            
+            
+            
+            <xsl:when test="@rend ='Zitat_zfdg'">
+                <quote><xsl:apply-templates/></quote>
+            </xsl:when>      
+            
+
+
+            <xsl:when test="@rend ='Großzitat_zfdg_Zchn'">
+                <quote type="grosszitat"><xsl:apply-templates/></quote>
+            </xsl:when>
+                                    
+            
+        </xsl:choose>    
+    </xsl:template>
+        
+        <!-- Template für Tabellen hinzugefügt von MB am 25.6.2020 -->
+        <xsl:template match="tei:table">
+            <xsl:element name="table">               
+            <xsl:for-each select="tei:row">
+                    <xsl:element name="row">
+                        <xsl:apply-templates select="."/></xsl:element>
+            </xsl:for-each>
+            </xsl:element>            
+        </xsl:template>
+        
+        <xsl:template match="tei:cell">
+            <xsl:choose>
+                <xsl:when test="ancestor::tei:row">
+                    <cell><xsl:apply-templates/></cell>
+                </xsl:when>                
+                <xsl:otherwise>
+                    <tei:cell><xsl:apply-templates select="."/></tei:cell>
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:template>
+        
+        
+        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
+    
+    <xsl:template match="tei:ref">
+        <xsl:element name="ref">
+            <xsl:attribute name="target">
+                <xsl:value-of select="@target"/>
+            </xsl:attribute><xsl:value-of select="."/>
+            <!-- auskommentiert von MB am 25.6. da doppelte Ausgabe des Textknotens  -->
+            <!--<xsl:value-of select="tei:hi"/>-->
+        </xsl:element>
+    </xsl:template>
+        
+      
+    <!--<xsl:template match="tei:table">
+        <table><xsl:apply-templates></xsl:apply-templates></table>
+    </xsl:template>-->
+    
+   <!-- <xsl:template match="tei:row">
+        <row><xsl:apply-templates></xsl:apply-templates></row>
+    </xsl:template>-->
+   <!-- <xsl:template match="tei:cell">
+        <cell><xsl:apply-templates></xsl:apply-templates></cell>
+    </xsl:template>-->
+</xsl:stylesheet>