Add first working conversion pipeline
diff --git a/xslt/epub2i5.xsl b/xslt/epub2i5.xsl
new file mode 100644
index 0000000..c5f5c95
--- /dev/null
+++ b/xslt/epub2i5.xsl
@@ -0,0 +1,405 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:xs="http://www.w3.org/2001/XMLSchema"
+                xmlns:opf="http://www.idpf.org/2007/opf"
+                xmlns:dc="http://purl.org/dc/elements/1.1/"
+                xmlns:ids="http://www.ids-mannheim.de/ids"
+                xmlns:hlu="http://www.ids-mannheim.de/hlu"
+                xmlns:saxon="http://saxon.sf.net/"
+                xmlns:xhtml="http://www.w3.org/1999/xhtml"
+                exclude-result-prefixes="xs opf dc ids hlu saxon xhtml">
+
+    <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" saxon:line-length="1000"/>
+    <xsl:strip-space elements="*"/>
+
+    <xsl:variable name="ev"/>
+    <xsl:variable name="x"/>
+
+    <xsl:variable name="isbn" as="xs:string" select="replace(document-uri(), '.*([0-9]{13,}).*' , '$1')"/>
+
+
+    <xsl:variable name="dnbBookdata">
+        <xsl:copy-of select="doc(concat('https://services.dnb.de/sru/dnb?version=1.1&amp;operation=searchRetrieve&amp;query=NUM%3D', $isbn, '&amp;recordSchema=oai_dc'))"/>
+    </xsl:variable>
+
+    <xsl:variable name="autor"
+        select="string-join(replace($dnbBookdata//dc:creator, ' *\[[^\]]*\]', ''), ' ; ')"/>
+
+    <xsl:variable name="straight_autor" select="replace(hlu:reversedAuthors($autor), ',', '')"/>
+
+    <xsl:variable name="ina"/>
+    <xsl:variable name="_corpus"/>
+    <xsl:variable name="ent_known"/>
+
+
+    <!-- added HLU 2012-02-09: -->
+    <xsl:variable name="ent">
+        <xsl:choose>
+            <xsl:when test="$ent_known">
+                <xsl:value-of select="$ent_known"/>
+            </xsl:when>
+            <xsl:when test="$ev">
+                <xsl:value-of select="$ev"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:value-of select="$j"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:variable>
+
+    <xsl:variable name="titel">
+        <xsl:choose>
+            <xsl:when test="contains($dnbBookdata//dc:title,':')">
+                <xsl:value-of select="normalize-space(substring-before(substring-before($dnbBookdata//dc:title, '/'), ':'))"
+                    />
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:value-of select="normalize-space(substring-before($dnbBookdata//dc:title, '/'))"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:variable>
+
+    <xsl:variable name="erscheinungsort">
+        <xsl:choose>
+            <xsl:when test="contains($dnbBookdata//dc:publisher,':')">
+                <xsl:value-of select="normalize-space(substring-before($dnbBookdata//dc:publisher, ':'))"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:value-of select="normalize-space($dnbBookdata//dc:publisher)"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:variable>
+
+    <xsl:variable name="verlag">
+        <xsl:choose>
+            <xsl:when test="contains($dnbBookdata//dc:publisher,':')">
+                <xsl:value-of select="normalize-space(substring-after($dnbBookdata//dc:publisher, ':'))"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:value-of select="normalize-space($dnbBookdata//dc:publisher)"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:variable>
+
+    <xsl:variable name="erscheinungsjahr">
+        <xsl:choose>
+            <xsl:when test="matches($dnbBookdata//dc:date, '^[0-9]{4}$')">
+                <xsl:value-of select="$dnbBookdata//dc:date"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:value-of select="substring-before($dnbBookdata//dc:date, '-')"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:variable>
+
+    <xsl:variable name="untertitel"
+        select="normalize-space(substring-after(substring-before($dnbBookdata//dc:title, '/'), ':'))"/>
+
+    <xsl:variable name="herausgeber">
+        <xsl:choose>
+            <xsl:when test="$dnbBookdata//dc:creator[ends-with(.,'[Hrsg.]')]">
+                <xsl:value-of
+                    select="replace(string-join($dnbBookdata//dc:creator[ends-with(.,'[Hrsg.]')], ' ; '),'\s?\[Hrsg.\]','')"
+                    />
+            </xsl:when>
+            <xsl:otherwise>.</xsl:otherwise>
+        </xsl:choose>
+    </xsl:variable>
+
+    <xsl:variable name="straight_herausgeber"
+        select="replace(hlu:reversedAuthors($herausgeber), ',', '')"/>
+
+    <xsl:variable name="j" select="$dnbBookdata//dc:date"/>
+
+    <!-- for BOT+s: -->
+    <xsl:variable name="seiten" select="replace($dnbBookdata//dc:format,'S\.','')"/>
+
+    <!-- fuer BOT+b: -->
+    <xsl:variable name="_b">
+        <xsl:variable name="regexp1" select="'(Band|Bd\.)\s*([0-9]?[0-9]?[0-9])'"/>
+        <xsl:choose>
+            <xsl:when test="matches($dnbBookdata, $regexp1)">
+                <xsl:analyze-string select="$dnbBookdata//dc:title" regex="{$regexp1}">
+                    <xsl:matching-substring>
+                        <xsl:value-of select="."/>
+                    </xsl:matching-substring>
+                </xsl:analyze-string>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:value-of select="'.'"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:variable>
+
+    <!-- for BOT+x: -->
+    <xsl:variable name="txtart">
+        <xsl:choose>
+            <xsl:when test="$x">
+                <xsl:value-of select="concat('[', $x, ']')"/>
+            </xsl:when>
+            <xsl:when
+                test="matches($untertitel, '([Rr]oman|[Ee]rzhlung(en)?|[Aa]nthologie|[Gg]eschichte(n)?|[Nn]ovelle)')">
+                <xsl:value-of
+                    select="concat('[', replace(replace($untertitel, '.*?(((^|\P{L})\p{L}+)?([Rr]oman|[Ee]rzhlung(en)?|[Aa]nthologie|[Gg]eschichte(n)?|[Nn]ovelle)).*', '$1'), '\P{L}*(.+)', '$1'), ']')"
+                    />
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:value-of>Roman</xsl:value-of>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:variable>
+
+
+
+    <!-- fuer BOTd: -->
+    <xsl:variable name="dok"
+        select="concat((if(string-length($autor) &gt; 0) then concat($straight_autor, ': ') else ''), $titel, ', ', $txtart, ', (', $j, ')')"/>
+
+    <!-- END variables derived from sru request to dnb archive -->
+
+
+    <xsl:variable name="corpus_sigle" select="'DNB'"/>
+
+    <!-- for BOTD: -->
+    <!-- Dokumentsigle muss zusammen mit Korpussigle (z.B DIV fuer loz-div und loz-div-pub) eindeutig sein -->
+    <xsl:variable name="doc_sigle">
+        <xsl:variable name="firstContentWordTitleInitial">
+            <xsl:variable name="helper">
+                <xsl:analyze-string select="$titel" regex="\w+">
+                    <xsl:matching-substring>
+                        <xsl:choose>
+                            <xsl:when
+                                test="matches(.,'^[A-Z]') and not(matches(.,'^(Der|Die|Das|Des|Ein|Eine|Eines|Einmal|Von|Mit|Zu|Zurck)$'))">
+                                <!-- TODO: Fktnswoerter nachtragen -->
+                                <xsl:sequence select="."/>
+                            </xsl:when>
+                            <xsl:otherwise/>
+                        </xsl:choose>
+                    </xsl:matching-substring>
+                </xsl:analyze-string>
+            </xsl:variable>
+            <xsl:value-of
+                select="upper-case(substring(normalize-space(replace($helper,'\s+.+$','')),1,1))"/>
+            <!-- longest match of .+  -->
+        </xsl:variable>
+        <xsl:choose>
+            <xsl:when test="contains($autor,';')">
+                <xsl:variable name="lastname_aut1"
+                    select="upper-case(substring(normalize-space(substring-before(substring-before($autor,';'),',')), 1, 1))"/>
+                <xsl:variable name="lastname_aut2"
+                    select="upper-case(substring(normalize-space(substring-before(substring-before(substring-after($autor, ';'),';'),',')), 1, 1))"/>
+                <xsl:value-of select="concat($lastname_aut1, $lastname_aut2)"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:variable name="lastname_aut1"
+                    select="upper-case(substring(normalize-space(substring-before($autor,',')),1,1))"/>
+                <xsl:variable name="firstname_aut1"
+                    select="upper-case(substring(normalize-space(substring-after($autor,',')),1,1))"/>
+                <xsl:value-of select="concat($lastname_aut1, $firstname_aut1)"/>
+            </xsl:otherwise>
+        </xsl:choose>
+        <xsl:value-of select="$firstContentWordTitleInitial"/>
+    </xsl:variable>
+
+
+    <xsl:variable name="text_sigle" select="substring($isbn, 8, 5)"/>
+    <xsl:variable name="sigle" select="concat($corpus_sigle, '/', $doc_sigle, '.', $text_sigle)"/>
+
+    <!-- fuer BOT+xy: (?) -->
+    <xsl:variable name="xyref">
+        <xsl:value-of select="document-uri(.)"/>
+        <xsl:text>; </xsl:text>
+        <xsl:text>ISBN:</xsl:text>
+        <xsl:value-of select="$isbn"/>
+        <xsl:text>; </xsl:text>
+        <xsl:value-of select="string-join($dnbBookdata//dc:identifier)"/>
+    </xsl:variable>
+
+
+    <xsl:template match="/">
+        <idsDoc TEIform="TEI.2" type="text" version="1.0">
+            <idsHeader TEIform="teiHeader" pattern="text" status="new" type="document" version="1.1">
+                <fileDesc>
+                    <titleStmt>
+                        <dokumentSigle>KJL/HRK</dokumentSigle>
+                        <d.title>Christiane F. ; Kai Hermann ; Horst Rieck: Wir Kinder vom Bahnhof Zoo , [Jugendliteratur], (2011)</d.title>
+                    </titleStmt>
+                    <publicationStmt>
+                        <distributor/>
+                        <pubAddress/>
+                        <availability region="world" status="unknown">QAO-NC</availability>
+                        <pubDate/>
+                    </publicationStmt>
+                    <sourceDesc>
+                        <biblStruct>
+                            <monogr>
+                                <h.title type="main"/>
+                                <imprint/>
+                            </monogr>
+                        </biblStruct>
+                    </sourceDesc>
+                </fileDesc>
+            </idsHeader>
+            <idsText version="1.0">
+                <idsHeader TEIform="teiHeader" pattern="text" status="new" type="text" version="1.1">
+                    <fileDesc>
+                        <titleStmt>
+                            <textSigle><xsl:sequence select="$sigle"/></textSigle>
+                            <t.title assemblage="regular">KJL/HRK.00001 F., Christiane ; Hermann, Kai ; Rieck, Horst: Wir Kinder vom Bahnhof Zoo, [Jugendliteratur], Erstv. 1978. - Hamburg, 2011</t.title>
+                        </titleStmt>
+                        <publicationStmt>
+                            <distributor/>
+                            <pubAddress/>
+                            <availability region="world" status="unknown">QAO-NC</availability>
+                            <pubDate/>
+                        </publicationStmt>
+                        <sourceDesc>
+                            <biblStruct>
+                                <monogr>
+                                    <h.title type="main"><xsl:value-of select="$titel"/></h.title>
+                                    <h.title type="sub"><xsl:value-of select="$untertitel"/></h.title>
+                                    <h.author><xsl:value-of select="$autor"/></h.author>
+                                    <editor/>
+                                    <edition>
+                                        <further/>
+                                        <kind>E-Book-Ausgabe</kind>
+                                        <appearance>EPUB-Datei</appearance>
+                                    </edition>
+                                    <imprint>
+                                        <publisher><xsl:value-of select="$herausgeber"/></publisher>
+                                        <pubDate type="year"><xsl:value-of select="$j"/></pubDate>
+                                        <pubDate type="month"/>
+                                        <pubDate type="day"/>
+                                        <pubPlace key="DE"><xsl:value-of select="$erscheinungsort"/></pubPlace>
+                                    </imprint>
+                                    <biblScope type="subsume"/>
+                                    <biblScope type="pp"/>
+                                    <biblScope type="vol"/>
+                                    <biblScope type="volume-title"/>
+                                </monogr>
+                            </biblStruct>
+                            <reference assemblage="regular" type="complete"><xsl:value-of select="concat($sigle, ' ', $autor, ': ', $titel, '. ', $erscheinungsort, ': ', $verlag, ', ', $erscheinungsjahr)"/></reference>
+                            <reference assemblage="regular" type="short">KJL/HRK.00001 F. ; Hermann ; Rieck: Wir Kinder vom Bahnhof Zoo, Erstv. 1978, 2011</reference>
+                        </sourceDesc>
+                    </fileDesc>
+                    <profileDesc>
+                        <creation>
+                            <creatDate><xsl:value-of select="$j"/></creatDate>
+                        </creation>
+                        <textClass/>
+                        <textDesc>
+                            <textType>Jugendliteratur</textType>
+                            <textTypeRef>Jugendliteratur</textTypeRef>
+                            <textDomain/>
+                        </textDesc>
+                    </profileDesc>
+                </idsHeader>
+                <text>
+                   <body>
+                    <!-- Call the template for each link in the TOC 
+                         <xsl:apply-templates select="//xhtml:ol[@class='toc']/xhtml:li/xhtml:a" mode="collect"/> -->
+                    <xsl:apply-templates select="//opf:package/opf:manifest/opf:item[matches(@href, '\.x?html$') and not(matches(@href, '(cover|toc|copyright|feedback).*'))]" mode="collect"/>
+                    </body>
+                </text>
+            </idsText>
+        </idsDoc>
+    </xsl:template>
+
+    <xsl:template match="opf:item" mode="collect">
+        <xsl:variable name="href" select="@href"/>
+        <xsl:message>
+            <xsl:text>converting: </xsl:text><xsl:value-of select="$href"/><xsl:text> </xsl:text><xsl:value-of select="$isbn"/>
+        </xsl:message>
+        <xsl:apply-templates select="doc(resolve-uri($href, base-uri()))/xhtml:html/xhtml:body"/>
+    </xsl:template>
+
+    <xsl:template match="xhtml:body">
+        <div type="chapter">
+            <xsl:apply-templates/>
+        </div>
+    </xsl:template>
+
+    <xsl:template match="xhtml:title">
+        <head>
+            <xsl:apply-templates/>
+        </head>
+    </xsl:template>
+
+    <xsl:template match="xhtml:h1">
+        <head>
+            <xsl:apply-templates/>
+        </head>
+    </xsl:template>
+
+    <xsl:template match="xhtml:h2|xhtml:h3">
+        <head type="sub">
+            <xsl:apply-templates/>
+        </head>
+    </xsl:template>
+
+
+    <xsl:template match="xhtml:span[@class='italic']">
+        <hi rend="italic">
+            <xsl:apply-templates/>
+        </hi>
+    </xsl:template>
+
+    <xsl:template match="xhtml:span[@class='bold']">
+        <hi rend="bold">
+            <xsl:apply-templates/>
+        </hi>
+    </xsl:template>
+
+    <xsl:template match="xhtml:span[@class='sub']">
+        <hi rend="sub">
+            <xsl:apply-templates/>
+        </hi>
+    </xsl:template>
+
+    <xsl:template match="xhtml:span[@class='sup']">
+        <hi rend="sup">
+            <xsl:apply-templates/>
+        </hi>
+    </xsl:template>
+
+    <xsl:template match="xhtml:div">
+        <div type="section">
+            <xsl:apply-templates/>
+        </div>
+    </xsl:template>
+
+    <xsl:template match="xhtml:p">
+        <p>
+            <xsl:apply-templates/>
+        </p>
+    </xsl:template>
+
+    <xsl:template match="xhtml:img">
+        <!-- <gap reason="image"/>  -->
+    </xsl:template>
+
+    <xsl:template match="xhtml:*">
+        <xsl:message>
+            <xsl:text>unhandled element: </xsl:text><xsl:value-of select="concat(name(), ' ', string-join(./@*[normalize-space(.) != '']/concat(name(), ':', ., ' '), '_'))"/>
+        </xsl:message>
+        <xsl:apply-templates/>
+    </xsl:template>
+
+    <xsl:function name="ids:reversedAuthors">
+        <xsl:param name="s" />
+        <xsl:value-of
+            select="
+                if (matches($s, ';')) then
+                    concat(ids:reversedAuthors(substring-before($s, ' ; ')), ' ; ', ids:reversedAuthors(substring-after($s, ' ; ')))
+                else
+                    replace($s, '(.+) (.+)', '$2, $1')"
+            />
+    </xsl:function>
+
+    <xsl:function name="hlu:reversedAuthors">
+        <xsl:param name="s"/>
+        <xsl:value-of
+            select="if (matches($s, ';')) then concat(ids:reversedAuthors(substring-before($s, ' ; ')), ' ; ', ids:reversedAuthors(substring-after($s, ' ; '))) else replace($s, '(.+),(.+)', '$2, $1')"
+            />
+    </xsl:function>
+
+</xsl:stylesheet>
diff --git a/xslt/idsCorpus-template.xml b/xslt/idsCorpus-template.xml
new file mode 100644
index 0000000..7ff9f0f
--- /dev/null
+++ b/xslt/idsCorpus-template.xml
@@ -0,0 +1,242 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE idsCorpus PUBLIC "-//IDS//DTD IDS-I5 1.0//EN" "http://corpora.ids-mannheim.de/I5/DTD/i5.dtd">
+<idsCorpus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" TEIform="teiCorpus.2" version="1.0">
+  <idsHeader TEIform="teiHeader" pattern="allesaußerZtg/Zschr" status="new" type="corpus" version="1.1">
+    <fileDesc>
+      <titleStmt>
+        <korpusSigle>DNB</korpusSigle>
+        <c.title>Deutschsprachige Belletristik</c.title>
+      </titleStmt>
+      <publicationStmt>
+        <distributor>		Institut für Deutsche Sprache		</distributor>
+        <pubAddress>		Postfach 10 16 21, D-68016 Mannheim	</pubAddress>
+        <telephone>		+49 (0)621 1581 0			</telephone>
+        <availability region="world" status="unknown">QAO-NC</availability>
+        <pubDate/>
+      </publicationStmt>
+      <sourceDesc>
+        <biblStruct>
+          <monogr>
+            <h.title type="main"/>
+            <imprint/>
+          </monogr>
+        </biblStruct>
+      </sourceDesc>
+    </fileDesc>
+    <encodingDesc>
+      <projectDesc/>
+      <samplingDecl/>
+      <editorialDecl>
+        <transduction>korap4dnb</transduction>
+        <pagination type="no"/>
+      </editorialDecl>
+      <classDecl>
+        <taxonomy id="topic">
+          <h.bibl>Thementaxonomie (siehe http://www.ids-mannheim.de/kl/projekte/methoden/te.html)</h.bibl>
+          <category id="topic.fiktion">
+            <catDesc>Fiktion</catDesc>
+            <category id="topic.fiktion.vermischtes">
+              <catDesc>Fiktion:Vermischtes</catDesc>
+            </category>
+          </category>
+          <category id="topic.freizeit-unterhaltung">
+            <catDesc>Freizeit_Unterhaltung</catDesc>
+            <category id="topic.freizeit-unterhaltung.reisen">
+              <catDesc>Freizeit_Unterhaltung:Reisen</catDesc>
+            </category>
+            <category id="topic.freizeit-unterhaltung.rundfunk">
+              <catDesc>Freizeit_Unterhaltung:Rundfunk</catDesc>
+            </category>
+            <category id="topic.freizeit-unterhaltung.vereine-veranstaltungen">
+              <catDesc>Freizeit_Unterhaltung:Vereine_Veranstaltungen</catDesc>
+            </category>
+          </category>
+          <category id="topic.gesundheit-ernaehrung">
+            <catDesc>Gesundheit_Ernaehrung</catDesc>
+            <category id="topic.gesundheit-ernaehrung.ernaehrung">
+              <catDesc>Gesundheit_Ernaehrung:Ernaehrung</catDesc>
+            </category>
+            <category id="topic.gesundheit-ernaehrung.gesundheit">
+              <catDesc>Gesundheit_Ernaehrung:Gesundheit</catDesc>
+            </category>
+          </category>
+          <category id="topic.kultur">
+            <catDesc>Kultur</catDesc>
+            <category id="topic.kultur.bildende-kunst">
+              <catDesc>Kultur:Bildende Kunst</catDesc>
+            </category>
+            <category id="topic.kultur.darstellende-kunst">
+              <catDesc>Kultur:Darstellende Kunst</catDesc>
+            </category>
+            <category id="topic.kultur.film">
+              <catDesc>Kultur:Film</catDesc>
+            </category>
+            <category id="topic.kultur.literatur">
+              <catDesc>Kultur:Literatur</catDesc>
+            </category>
+            <category id="topic.kultur.mode">
+              <catDesc>Kultur:Mode</catDesc>
+            </category>
+            <category id="topic.kultur.musik">
+              <catDesc>Kultur:Musik</catDesc>
+            </category>
+          </category>
+          <category id="topic.natur-umwelt">
+            <catDesc>Natur_Umwelt</catDesc>
+            <category id="topic.natur-umwelt.garten">
+              <catDesc>Natur_Umwelt:Garten</catDesc>
+            </category>
+            <category id="topic.natur-umwelt.tiere">
+              <catDesc>Natur_Umwelt:Tiere</catDesc>
+            </category>
+            <category id="topic.natur-umwelt.wetter-klima">
+              <catDesc>Natur_Umwelt:Wetter_Klima</catDesc>
+            </category>
+          </category>
+          <category id="topic.politik">
+            <catDesc>Politik</catDesc>
+            <category id="topic.politik.ausland">
+              <catDesc>Politik:Ausland</catDesc>
+            </category>
+            <category id="topic.politik.inland">
+              <catDesc>Politik:Inland</catDesc>
+            </category>
+            <category id="topic.politik.kommunalpolitik">
+              <catDesc>Politik:Kommunalpolitik</catDesc>
+            </category>
+          </category>
+          <category id="topic.rest">
+            <catDesc>Rest</catDesc>
+            <category id="topic.rest.boersenkurse">
+              <catDesc>Rest:boersenkurse</catDesc>
+            </category>
+            <category id="topic.rest.geburt-tod-heirat">
+              <catDesc>Rest:geburt_tod_heirat</catDesc>
+            </category>
+            <category id="topic.rest.impressum">
+              <catDesc>Rest:impressum</catDesc>
+            </category>
+            <category id="topic.rest.inhaltsverzeichnisse">
+              <catDesc>Rest:inhaltsverzeichnisse</catDesc>
+            </category>
+            <category id="topic.rest.ligatabellen">
+              <catDesc>Rest:ligatabellen</catDesc>
+            </category>
+            <category id="topic.rest.tabellen">
+              <catDesc>Rest:tabellen</catDesc>
+            </category>
+            <category id="topic.rest.veranstaltungshinweise">
+              <catDesc>Rest:veranstaltungshinweise</catDesc>
+            </category>
+          </category>
+          <category id="topic.sport">
+            <catDesc>Sport</catDesc>
+            <category id="topic.sport.ballsport">
+              <catDesc>Sport:Ballsport</catDesc>
+            </category>
+            <category id="topic.sport.fussball">
+              <catDesc>Sport:Fussball</catDesc>
+            </category>
+            <category id="topic.sport.motorsport">
+              <catDesc>Sport:Motorsport</catDesc>
+            </category>
+            <category id="topic.sport.radsport">
+              <catDesc>Sport:Radsport</catDesc>
+            </category>
+            <category id="topic.sport.tennis">
+              <catDesc>Sport:Tennis</catDesc>
+            </category>
+            <category id="topic.sport.vermischtes">
+              <catDesc>Sport:Vermischtes</catDesc>
+            </category>
+            <category id="topic.sport.wintersport">
+              <catDesc>Sport:Wintersport</catDesc>
+            </category>
+          </category>
+          <category id="topic.staat-gesellschaft">
+            <catDesc>Staat_Gesellschaft</catDesc>
+            <category id="topic.staat-gesellschaft.arbeit-und-beruf">
+              <catDesc>Staat_Gesellschaft:Arbeit_und_Beruf</catDesc>
+            </category>
+            <category id="topic.staat-gesellschaft.bildung">
+              <catDesc>Staat_Gesellschaft:Bildung</catDesc>
+            </category>
+            <category id="topic.staat-gesellschaft.biographien-interviews">
+              <catDesc>Staat_Gesellschaft:Biographien_Interviews</catDesc>
+            </category>
+            <category id="topic.staat-gesellschaft.drittes-reich-rechtsextremismus">
+              <catDesc>Staat_Gesellschaft:Drittes_Reich_Rechtsextremismus</catDesc>
+            </category>
+            <category id="topic.staat-gesellschaft.familie-geschlecht">
+              <catDesc>Staat_Gesellschaft:Familie_Geschlecht</catDesc>
+            </category>
+            <category id="topic.staat-gesellschaft.kirche">
+              <catDesc>Staat_Gesellschaft:Kirche</catDesc>
+            </category>
+            <category id="topic.staat-gesellschaft.recht">
+              <catDesc>Staat_Gesellschaft:Recht</catDesc>
+            </category>
+            <category id="topic.staat-gesellschaft.tod">
+              <catDesc>Staat_Gesellschaft:Tod</catDesc>
+            </category>
+            <category id="topic.staat-gesellschaft.verbrechen">
+              <catDesc>Staat_Gesellschaft:Verbrechen</catDesc>
+            </category>
+          </category>
+          <category id="topic.technik-industrie">
+            <catDesc>Technik_Industrie</catDesc>
+            <category id="topic.technik-industrie.edv-elektronik">
+              <catDesc>Technik_Industrie:EDV_Elektronik</catDesc>
+            </category>
+            <category id="topic.technik-industrie.kfz">
+              <catDesc>Technik_Industrie:Kfz</catDesc>
+            </category>
+            <category id="topic.technik-industrie.transport-verkehr">
+              <catDesc>Technik_Industrie:Transport_Verkehr</catDesc>
+            </category>
+            <category id="topic.technik-industrie.umweltschutz">
+              <catDesc>Technik_Industrie:Umweltschutz</catDesc>
+            </category>
+            <category id="topic.technik-industrie.unfaelle">
+              <catDesc>Technik_Industrie:Unfaelle</catDesc>
+            </category>
+          </category>
+          <category id="topic.wirtschaft-finanzen">
+            <catDesc>Wirtschaft_Finanzen</catDesc>
+            <category id="topic.wirtschaft-finanzen.banken">
+              <catDesc>Wirtschaft_Finanzen:Banken</catDesc>
+            </category>
+            <category id="topic.wirtschaft-finanzen.bilanzen">
+              <catDesc>Wirtschaft_Finanzen:Bilanzen</catDesc>
+            </category>
+            <category id="topic.wirtschaft-finanzen.oeffentliche-finanzen">
+              <catDesc>Wirtschaft_Finanzen:Oeffentliche_Finanzen</catDesc>
+            </category>
+            <category id="topic.wirtschaft-finanzen.sozialprodukt">
+              <catDesc>Wirtschaft_Finanzen:Sozialprodukt</catDesc>
+            </category>
+            <category id="topic.wirtschaft-finanzen.waehrung">
+              <catDesc>Wirtschaft_Finanzen:Waehrung</catDesc>
+            </category>
+          </category>
+          <category id="topic.wissenschaft">
+            <catDesc>Wissenschaft</catDesc>
+            <category id="topic.wissenschaft.populaerwissenschaft">
+              <catDesc>Wissenschaft:Populaerwissenschaft</catDesc>
+            </category>
+          </category>
+          <category id="topic.unklassifizierbar">
+            <catDesc>Text ist thematisch nicht klassifizierbar.</catDesc>
+          </category>
+        </taxonomy>
+      </classDecl>
+    </encodingDesc>
+    <profileDesc>
+      <langUsage>
+        <language id="de" usage="100">Deutsch</language>
+      </langUsage>
+      <textDesc/>
+    </profileDesc>
+  </idsHeader>
+
+</idsCorpus>