Added test suite for Schreibgebrauch
Change-Id: I5493461b5935ff652723a2e85e319a5b0ebba18d
diff --git a/t/sgbr/TEST/BSP/1/base/paragraph.xml b/t/sgbr/TEST/BSP/1/base/paragraph.xml
new file mode 100644
index 0000000..28fa1c7
--- /dev/null
+++ b/t/sgbr/TEST/BSP/1/base/paragraph.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="TEST_BSP.1" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+ <spanList>
+ <span from="19" to="364" />
+ </spanList>
+</layer>
\ No newline at end of file
diff --git a/t/sgbr/TEST/BSP/1/base/sentences.xml b/t/sgbr/TEST/BSP/1/base/sentences.xml
new file mode 100644
index 0000000..38c4752
--- /dev/null
+++ b/t/sgbr/TEST/BSP/1/base/sentences.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="TEST_BSP.1" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+ <spanList>
+ <span from="0" to="18" />
+ <span from="19" to="52" />
+ <span from="53" to="305" />
+ <span from="306" to="326" />
+ <span from="327" to="364" />
+ </spanList>
+</layer>
\ No newline at end of file
diff --git a/t/sgbr/TEST/BSP/1/base/tokens_aggr.xml b/t/sgbr/TEST/BSP/1/base/tokens_aggr.xml
new file mode 100644
index 0000000..4a8ad39
--- /dev/null
+++ b/t/sgbr/TEST/BSP/1/base/tokens_aggr.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="TEST_BSP.1" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+ <spanList>
+ <span id="t_0" from="0" to="18" />
+ <span id="t_1" from="19" to="21" />
+ <span id="t_2" from="22" to="25" />
+ <span id="t_3" from="26" to="32" />
+ <span id="t_4" from="33" to="36" />
+ <span id="t_5" from="37" to="44" />
+ <span id="t_6" from="45" to="51" />
+ <span id="t_7" from="51" to="52" />
+ <span id="t_8" from="53" to="55" />
+ <span id="t_9" from="56" to="62" />
+ <span id="t_10" from="63" to="70" />
+ <span id="t_11" from="71" to="74" />
+ <span id="t_12" from="75" to="77" />
+ <span id="t_13" from="78" to="81" />
+ <span id="t_14" from="82" to="86" />
+ <span id="t_15" from="87" to="96" />
+ <span id="t_16" from="96" to="97" />
+ <span id="t_17" from="98" to="101" />
+ <span id="t_18" from="102" to="106" />
+ <span id="t_19" from="107" to="115" />
+ <span id="t_20" from="115" to="116" />
+ <span id="t_21" from="117" to="120" />
+ <span id="t_22" from="121" to="138" />
+ <span id="t_23" from="139" to="143" />
+ <span id="t_24" from="143" to="144" />
+ <span id="t_25" from="145" to="148" />
+ <span id="t_26" from="149" to="161" />
+ <span id="t_27" from="162" to="167" />
+ <span id="t_28" from="168" to="171" />
+ <span id="t_29" from="172" to="175" />
+ <span id="t_30" from="176" to="182" />
+ <span id="t_31" from="183" to="190" />
+ <span id="t_32" from="191" to="200" />
+ <span id="t_33" from="201" to="205" />
+ <span id="t_34" from="206" to="209" />
+ <span id="t_35" from="210" to="215" />
+ <span id="t_36" from="215" to="216" />
+ <span id="t_37" from="217" to="220" />
+ <span id="t_38" from="221" to="226" />
+ <span id="t_39" from="227" to="230" />
+ <span id="t_40" from="231" to="234" />
+ <span id="t_41" from="235" to="239" />
+ <span id="t_42" from="239" to="240" />
+ <span id="t_43" from="241" to="244" />
+ <span id="t_44" from="245" to="252" />
+ <span id="t_45" from="253" to="260" />
+ <span id="t_46" from="260" to="261" />
+ <span id="t_47" from="262" to="267" />
+ <span id="t_48" from="268" to="270" />
+ <span id="t_49" from="271" to="280" />
+ <span id="t_50" from="280" to="281" />
+ <span id="t_51" from="281" to="284" />
+ <span id="t_52" from="285" to="297" />
+ <span id="t_53" from="298" to="304" />
+ <span id="t_54" from="304" to="305" />
+ <span id="t_55" from="306" to="308" />
+ <span id="t_56" from="309" to="312" />
+ <span id="t_57" from="313" to="325" />
+ <span id="t_58" from="325" to="326" />
+ <span id="t_59" from="327" to="328" />
+ <span id="t_60" from="328" to="333" />
+ <span id="t_61" from="334" to="337" />
+ <span id="t_62" from="338" to="348" />
+ <span id="t_63" from="348" to="349" />
+ <span id="t_64" from="349" to="350" />
+ <span id="t_65" from="351" to="358" />
+ <span id="t_66" from="359" to="364" />
+ <span id="t_67" from="364" to="365" />
+ </spanList>
+</layer>
\ No newline at end of file
diff --git a/t/sgbr/TEST/BSP/1/base/tokens_conservative.xml b/t/sgbr/TEST/BSP/1/base/tokens_conservative.xml
new file mode 100644
index 0000000..9038686
--- /dev/null
+++ b/t/sgbr/TEST/BSP/1/base/tokens_conservative.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="TEST_BSP.1" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+ <spanList>
+ <span id="t_0" from="0" to="18" />
+ <span id="t_1" from="19" to="21" />
+ <span id="t_2" from="22" to="25" />
+ <span id="t_3" from="26" to="32" />
+ <span id="t_4" from="33" to="36" />
+ <span id="t_5" from="37" to="44" />
+ <span id="t_6" from="45" to="51" />
+ <span id="t_7" from="51" to="52" />
+ <span id="t_8" from="53" to="55" />
+ <span id="t_9" from="56" to="62" />
+ <span id="t_10" from="63" to="70" />
+ <span id="t_11" from="71" to="74" />
+ <span id="t_12" from="75" to="77" />
+ <span id="t_13" from="78" to="81" />
+ <span id="t_14" from="82" to="86" />
+ <span id="t_15" from="87" to="96" />
+ <span id="t_16" from="96" to="97" />
+ <span id="t_17" from="98" to="101" />
+ <span id="t_18" from="102" to="106" />
+ <span id="t_19" from="107" to="115" />
+ <span id="t_20" from="115" to="116" />
+ <span id="t_21" from="117" to="120" />
+ <span id="t_22" from="121" to="138" />
+ <span id="t_23" from="139" to="143" />
+ <span id="t_24" from="143" to="144" />
+ <span id="t_25" from="145" to="148" />
+ <span id="t_26" from="149" to="161" />
+ <span id="t_27" from="162" to="167" />
+ <span id="t_28" from="168" to="171" />
+ <span id="t_29" from="172" to="175" />
+ <span id="t_30" from="176" to="182" />
+ <span id="t_31" from="183" to="190" />
+ <span id="t_32" from="191" to="200" />
+ <span id="t_33" from="201" to="205" />
+ <span id="t_34" from="206" to="209" />
+ <span id="t_35" from="210" to="215" />
+ <span id="t_36" from="215" to="216" />
+ <span id="t_37" from="217" to="220" />
+ <span id="t_38" from="221" to="226" />
+ <span id="t_39" from="227" to="230" />
+ <span id="t_40" from="231" to="234" />
+ <span id="t_41" from="235" to="239" />
+ <span id="t_42" from="239" to="240" />
+ <span id="t_43" from="241" to="244" />
+ <span id="t_44" from="245" to="252" />
+ <span id="t_45" from="253" to="260" />
+ <span id="t_46" from="260" to="261" />
+ <span id="t_47" from="262" to="267" />
+ <span id="t_48" from="268" to="270" />
+ <span id="t_49" from="271" to="284" />
+ <span id="t_50" from="285" to="297" />
+ <span id="t_51" from="298" to="304" />
+ <span id="t_52" from="304" to="305" />
+ <span id="t_53" from="306" to="308" />
+ <span id="t_54" from="309" to="312" />
+ <span id="t_55" from="313" to="325" />
+ <span id="t_56" from="325" to="326" />
+ <span id="t_57" from="328" to="333" />
+ <span id="t_58" from="334" to="337" />
+ <span id="t_59" from="338" to="348" />
+ <span id="t_60" from="348" to="349" />
+ <span id="t_61" from="349" to="350" />
+ <span id="t_62" from="351" to="358" />
+ <span id="t_63" from="359" to="364" />
+ <span id="t_64" from="364" to="365" />
+ </spanList>
+</layer>
\ No newline at end of file
diff --git a/t/sgbr/TEST/BSP/1/data.xml b/t/sgbr/TEST/BSP/1/data.xml
new file mode 100644
index 0000000..d7b31a0
--- /dev/null
+++ b/t/sgbr/TEST/BSP/1/data.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="text.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<raw_text docid="TEST_BSP.1" xmlns="http://ids-mannheim.de/ns/KorAP">
+ <metadata file="metadata.xml" />
+ <text>Sommerüberraschung Es war einmal die Familie Patzig. In dieser Familie gab es die Mama Elisabeth, den Papa Guenther, die fuenfzehnjaehrige Lena, den neunjaerigen Kevin und die beiden kleinen Zwillinge Lion und Tayla, Oma Luise und ihr Mann, Opa Hermann Mueller, nicht zu vergessen:ihr Familienhund Barker. Es ist Sommeranfang! "Heute ist Wochenende", schreit Kevin.</text>
+</raw_text>
\ No newline at end of file
diff --git a/t/sgbr/TEST/BSP/1/header.xml b/t/sgbr/TEST/BSP/1/header.xml
new file mode 100644
index 0000000..7d82c8d
--- /dev/null
+++ b/t/sgbr/TEST/BSP/1/header.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="header.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+<!DOCTYPE idsCorpus PUBLIC "-//IDS//DTD IDS-XCES 1.0//EN" "http://corpora.ids-mannheim.de/idsxces1/DTD/ids.xcesdoc.dtd">
+<teiHeader>
+<textSigle>TEST_BSP.1</textSigle>
+<item ana="#TEST.BSP.Kodex" n="1" rend="M" xml:id="TEST.BSP.Texte.1">
+<biblFull>
+<titleStmt>
+<title>Sommerüberraschung</title>
+<author ref="#TEST.BSP.Autoren.1"/>
+</titleStmt>
+<publicationStmt>
+<p>Dieser Text ist in Wirklichkeit nicht vorhanden.</p>
+</publicationStmt>
+</biblFull>
+</item>
+</teiHeader>
\ No newline at end of file
diff --git a/t/sgbr/TEST/BSP/1/sgbr/ana.xml b/t/sgbr/TEST/BSP/1/sgbr/ana.xml
new file mode 100644
index 0000000..987b84d
--- /dev/null
+++ b/t/sgbr/TEST/BSP/1/sgbr/ana.xml
@@ -0,0 +1,687 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="TEST_BSP.1" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+ <spanList>
+ <span id="s1" from="0" to="18">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Sommerüberraschung</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s2" from="19" to="21">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Es</f>
+ <f name="ctag">PPER</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s3" from="22" to="25">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">war</f>
+ <f name="ctag">VAFIN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s4" from="26" to="32">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">einmal</f>
+ <f name="ctag">ADV</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s5" from="33" to="36">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">die</f>
+ <f name="ctag">ART</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s6" from="37" to="44">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Familie</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s7" from="45" to="51">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Patzig</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s8" from="51" to="52">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">.</f>
+ <f name="ctag">_ENDE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s9" from="53" to="55">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">In</f>
+ <f name="ctag">APPR</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s10" from="56" to="62">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">dieser</f>
+ <f name="ctag">PDAT</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s11" from="63" to="70">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Familie</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s12" from="71" to="74">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">gab</f>
+ <f name="ctag">VVFIN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s13" from="75" to="77">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">es</f>
+ <f name="ctag">PPER</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s14" from="78" to="81">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">die</f>
+ <f name="ctag">ART</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s15" from="82" to="86">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Mama</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s16" from="87" to="96">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Elisabeth</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s17" from="96" to="97">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">,</f>
+ <f name="ctag">_KOMMA</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s18" from="98" to="101">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">den</f>
+ <f name="ctag">ART</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s19" from="102" to="106">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Papa</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s20" from="107" to="115">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Guenther</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s21" from="115" to="116">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">,</f>
+ <f name="ctag">_KOMMA</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s22" from="117" to="120">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">die</f>
+ <f name="ctag">ART</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s23" from="121" to="138">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">fuenfzehnjaehrige</f>
+ <f name="ctag">ADJA</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s24" from="139" to="143">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Lena</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s25" from="143" to="144">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">,</f>
+ <f name="ctag">_KOMMA</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s26" from="145" to="148">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">den</f>
+ <f name="ctag">ART</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s27" from="149" to="161">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">neunjaerigen</f>
+ <f name="ctag">ADJA</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s28" from="162" to="167">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Kevin</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s29" from="168" to="171">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">und</f>
+ <f name="ctag">KON</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s30" from="172" to="175">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">die</f>
+ <f name="ctag">ART</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s31" from="176" to="182">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">beiden</f>
+ <f name="ctag">PIAT</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s32" from="183" to="190">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">kleinen</f>
+ <f name="ctag">ADJA</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s33" from="191" to="200">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Zwillinge</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s34" from="201" to="205">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Lion</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s35" from="206" to="209">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">und</f>
+ <f name="ctag">KON</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s36" from="210" to="215">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Tayla</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s37" from="215" to="216">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">,</f>
+ <f name="ctag">_KOMMA</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s38" from="217" to="220">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Oma</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s39" from="221" to="226">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Luise</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s40" from="227" to="230">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">und</f>
+ <f name="ctag">KON</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s41" from="231" to="234">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">ihr</f>
+ <f name="ctag">PPOSAT</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s42" from="235" to="239">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Mann</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s43" from="239" to="240">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">,</f>
+ <f name="ctag">_KOMMA</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s44" from="241" to="244">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Opa</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s45" from="245" to="252">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Hermann</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s46" from="253" to="260">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Mueller</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s47" from="260" to="261">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">,</f>
+ <f name="ctag">_KOMMA</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s48" from="262" to="267">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">nicht</f>
+ <f name="ctag">PTKNEG</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s49" from="268" to="270">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">zu</f>
+ <f name="ctag">PTKZU</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s50" from="271" to="280">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">vergessen</f>
+ <f name="ctag">VVINF</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s51" from="280" to="281">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">:</f>
+ <f name="ctag">_ENDE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s52" from="281" to="284">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">ihr</f>
+ <f name="ctag">PPOSAT</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s53" from="285" to="297">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Familienhund</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s54" from="298" to="304">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Barker</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s55" from="304" to="305">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">.</f>
+ <f name="ctag">_ENDE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s56" from="306" to="308">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Es</f>
+ <f name="ctag">PPER</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s57" from="309" to="312">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">ist</f>
+ <f name="ctag">VAFIN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s58" from="313" to="325">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Sommeranfang</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s59" from="325" to="326">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">!</f>
+ <f name="ctag">_ENDE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s60" from="327" to="328">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">"</f>
+ <f name="ctag">_SONST</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s61" from="328" to="333">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Heute</f>
+ <f name="ctag">ADV</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s62" from="334" to="337">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">ist</f>
+ <f name="ctag">VAFIN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s63" from="338" to="348">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Wochenende</f>
+ <f name="ctag">NN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s64" from="348" to="349">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">"</f>
+ <f name="ctag">_SONST</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s65" from="349" to="350">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">,</f>
+ <f name="ctag">_KOMMA</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s66" from="351" to="358">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">schreit</f>
+ <f name="ctag">VVFIN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s67" from="359" to="364">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Kevin</f>
+ <f name="ctag">NE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s68" from="364" to="365">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">.</f>
+ <f name="ctag">_ENDE</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ </spanList>
+</layer>
diff --git a/t/sgbr/TEST/BSP/1/sgbr/lemma.xml b/t/sgbr/TEST/BSP/1/sgbr/lemma.xml
new file mode 100644
index 0000000..5085f21
--- /dev/null
+++ b/t/sgbr/TEST/BSP/1/sgbr/lemma.xml
@@ -0,0 +1,494 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="TEST_BSP.1" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+ <spanList>
+ <span id="s1" from="0" to="18">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Sommerüberraschung</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s2" from="19" to="21">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">es</f>
+ <f name="lemma">er</f>
+ <f name="lemma">sie</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s3" from="22" to="25">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">sein</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s4" from="26" to="32">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">einmal</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s5" from="33" to="36">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">die</f>
+ <f name="lemma">der</f>
+ <f name="lemma">das</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s6" from="37" to="44">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Familie</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s7" from="53" to="55">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">in</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s8" from="56" to="62">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">diese</f>
+ <f name="lemma">dies</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s9" from="63" to="70">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Familie</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s10" from="71" to="74">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">geben</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s11" from="75" to="77">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">es</f>
+ <f name="lemma">er</f>
+ <f name="lemma">sie</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s12" from="78" to="81">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">die</f>
+ <f name="lemma">der</f>
+ <f name="lemma">das</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s13" from="82" to="86">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Mama</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s14" from="87" to="96">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Elisabeth</f>
+ <f name="lemma">Elisabet</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s15" from="98" to="101">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">der</f>
+ <f name="lemma">die</f>
+ <f name="lemma">das</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s16" from="102" to="106">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Papa</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s17" from="107" to="115">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Günther</f>
+ <f name="lemma">Günter</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s18" from="117" to="120">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">die</f>
+ <f name="lemma">der</f>
+ <f name="lemma">das</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s19" from="139" to="143">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Lena</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s20" from="145" to="148">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">der</f>
+ <f name="lemma">die</f>
+ <f name="lemma">das</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s21" from="162" to="167">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Kevin</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s22" from="168" to="171">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">und</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s23" from="172" to="175">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">die</f>
+ <f name="lemma">der</f>
+ <f name="lemma">das</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s24" from="176" to="182">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">beide</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s25" from="183" to="190">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">klein</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s26" from="191" to="200">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Zwilling</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s27" from="201" to="205">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Lion</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s28" from="206" to="209">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">und</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s29" from="210" to="215">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Tayla</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s30" from="217" to="220">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Oma</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s31" from="221" to="226">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Luise</f>
+ <f name="lemma">Luisa</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s32" from="227" to="230">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">und</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s33" from="231" to="234">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">ihr</f>
+ <f name="lemma">sein</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s34" from="235" to="239">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Mann</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s35" from="241" to="244">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Opa</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s36" from="245" to="252">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Hermann</f>
+ <f name="lemma">Herman</f>
+ <f name="lemma">Herrman</f>
+ <f name="lemma">Herrmann</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s37" from="253" to="260">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Müller</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s38" from="262" to="267">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">nicht</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s39" from="268" to="270">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">zu</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s40" from="271" to="280">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">vergessen</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s41" from="281" to="284">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">ihr</f>
+ <f name="lemma">sein</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s42" from="285" to="297">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Familienhund</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s43" from="298" to="304">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Barker</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s44" from="306" to="308">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">es</f>
+ <f name="lemma">er</f>
+ <f name="lemma">sie</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s45" from="309" to="312">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">sein</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s46" from="313" to="325">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Sommeranfang</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s47" from="328" to="333">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">heute</f>
+ <f name="lemma">heut</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s48" from="334" to="337">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">sein</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s49" from="338" to="348">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Wochenende</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s50" from="351" to="358">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">schreien</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s51" from="359" to="364">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Kevin</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ </spanList>
+</layer>
diff --git a/t/sgbr/TEST/BSP/1/struct/structure.xml b/t/sgbr/TEST/BSP/1/struct/structure.xml
new file mode 100644
index 0000000..6f540c8
--- /dev/null
+++ b/t/sgbr/TEST/BSP/1/struct/structure.xml
@@ -0,0 +1,871 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="TEST_BSP.1" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+ <spanList>
+ <span id="s0" from="0" to="364" l="1">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">text</f>
+ </fs>
+ </span>
+ <span id="s1" from="0" to="18" l="2">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">head</f>
+ </fs>
+ </span>
+ <span id="s2" from="0" to="18" l="3">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">s</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="n">1</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s3" from="0" to="18" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.1</f>
+ <f name="n">1</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s4" from="19" to="364" l="2">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">p</f>
+ </fs>
+ </span>
+ <span id="s5" from="19" to="52" l="3">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">s</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="n">2</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s6" from="19" to="21" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.PPER</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.2</f>
+ <f name="n">1</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s7" from="22" to="25" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.VAFIN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.3</f>
+ <f name="n">2</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s8" from="26" to="32" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ADV</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.4</f>
+ <f name="n">3</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s9" from="33" to="36" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ART</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.5</f>
+ <f name="n">4</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s10" from="37" to="44" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.6</f>
+ <f name="n">5</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s11" from="45" to="51" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="n">6</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s12" from="51" to="52" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._ENDE</f>
+ <f name="n">7</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s13" from="53" to="305" l="3">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">s</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="n">3</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s14" from="53" to="55" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.APPR</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.7</f>
+ <f name="n">1</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s15" from="56" to="62" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.PDAT</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.8</f>
+ <f name="n">2</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s16" from="63" to="70" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.6</f>
+ <f name="n">3</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s17" from="71" to="74" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.VVFIN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.9</f>
+ <f name="n">4</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s18" from="75" to="77" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.PPER</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.2</f>
+ <f name="n">5</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s19" from="78" to="81" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ART</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.5</f>
+ <f name="n">6</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s20" from="82" to="86" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.10</f>
+ <f name="n">7</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s21" from="87" to="96" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.11</f>
+ <f name="n">8</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s22" from="96" to="97" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._KOMMA</f>
+ <f name="n">9</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s23" from="98" to="101" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ART</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.12</f>
+ <f name="n">10</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s24" from="102" to="106" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.13</f>
+ <f name="n">11</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s25" from="107" to="115" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.14</f>
+ <f name="n">12</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s26" from="115" to="116" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._KOMMA</f>
+ <f name="n">13</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s27" from="117" to="120" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ART</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.5</f>
+ <f name="n">14</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s28" from="121" to="138" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ADJA</f>
+ <f name="n">15</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s29" from="139" to="143" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.15</f>
+ <f name="n">16</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s30" from="143" to="144" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._KOMMA</f>
+ <f name="n">17</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s31" from="145" to="148" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ART</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.12</f>
+ <f name="n">18</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s32" from="149" to="161" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ADJA</f>
+ <f name="n">19</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s33" from="162" to="167" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.16</f>
+ <f name="n">20</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s34" from="168" to="171" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.KON</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.17</f>
+ <f name="n">21</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s35" from="172" to="175" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ART</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.5</f>
+ <f name="n">22</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s36" from="176" to="182" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.PIAT</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.18</f>
+ <f name="n">23</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s37" from="183" to="190" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ADJA</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.19</f>
+ <f name="n">24</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s38" from="191" to="200" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.20</f>
+ <f name="n">25</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s39" from="201" to="205" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.21</f>
+ <f name="n">26</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s40" from="206" to="209" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.KON</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.17</f>
+ <f name="n">27</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s41" from="210" to="215" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.22</f>
+ <f name="n">28</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s42" from="215" to="216" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._KOMMA</f>
+ <f name="n">29</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s43" from="217" to="220" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.23</f>
+ <f name="n">30</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s44" from="221" to="226" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.24</f>
+ <f name="n">31</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s45" from="227" to="230" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.KON</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.17</f>
+ <f name="n">32</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s46" from="231" to="234" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.PPOSAT</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.25</f>
+ <f name="n">33</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s47" from="235" to="239" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.26</f>
+ <f name="n">34</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s48" from="239" to="240" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._KOMMA</f>
+ <f name="n">35</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s49" from="241" to="244" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.27</f>
+ <f name="n">36</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s50" from="245" to="252" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.28</f>
+ <f name="n">37</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s51" from="253" to="260" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.29</f>
+ <f name="n">38</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s52" from="260" to="261" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._KOMMA</f>
+ <f name="n">39</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s53" from="262" to="267" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.PTKNEG</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.30</f>
+ <f name="n">40</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s54" from="268" to="270" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.PTKZU</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.31</f>
+ <f name="n">41</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s55" from="271" to="280" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.VVINF</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.32</f>
+ <f name="n">42</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s56" from="280" to="281" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._ENDE</f>
+ <f name="n">43</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s57" from="281" to="284" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.PPOSAT</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.25</f>
+ <f name="n">44</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s58" from="285" to="297" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.33</f>
+ <f name="n">45</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s59" from="298" to="304" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.34</f>
+ <f name="n">46</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s60" from="304" to="305" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._ENDE</f>
+ <f name="n">47</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s61" from="306" to="326" l="3">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">s</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="n">4</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s62" from="306" to="308" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.PPER</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.2</f>
+ <f name="n">1</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s63" from="309" to="312" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.VAFIN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.3</f>
+ <f name="n">2</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s64" from="313" to="325" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.35</f>
+ <f name="n">3</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s65" from="325" to="326" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._ENDE</f>
+ <f name="n">4</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s66" from="327" to="364" l="3">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">s</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="n">5</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s67" from="327" to="328" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._SONST</f>
+ <f name="n">1</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s68" from="328" to="333" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.ADV</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.36</f>
+ <f name="n">2</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s69" from="334" to="337" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.VAFIN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.3</f>
+ <f name="n">3</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s70" from="338" to="348" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.37</f>
+ <f name="n">4</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s71" from="348" to="349" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._SONST</f>
+ <f name="n">5</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s72" from="349" to="350" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._KOMMA</f>
+ <f name="n">6</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s73" from="351" to="358" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.VVFIN</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.38</f>
+ <f name="n">7</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s74" from="359" to="364" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">w</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS.NE</f>
+ <f name="lemmaRef">#TEST.BSP.Lemmata.16</f>
+ <f name="n">8</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span id="s75" from="364" to="364" l="4">
+ <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="name">c</f>
+ <f name="attr">
+ <fs type="attr">
+ <f name="ana">#TEST.BSP.POS._ENDE</f>
+ <f name="n">9</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ </spanList>
+</layer>
\ No newline at end of file
diff --git a/t/sgbr/TEST/BSP/header.xml b/t/sgbr/TEST/BSP/header.xml
new file mode 100644
index 0000000..0af4d67
--- /dev/null
+++ b/t/sgbr/TEST/BSP/header.xml
@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="header.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+<!DOCTYPE idsCorpus PUBLIC "-//IDS//DTD IDS-XCES 1.0//EN" "http://corpora.ids-mannheim.de/idsxces1/DTD/ids.xcesdoc.dtd">
+<teiHeader>
+<dokumentSigle>TEST_BSP</dokumentSigle>
+ <fileDesc>
+ <titleStmt>
+ <title level="u" type="main">Beispielkorpus</title>
+ <title level="u" type="sub">Subkorpus Beispieltext</title>
+ </titleStmt>
+ <publicationStmt>
+ <p>Dieses Korpus wird als Teil der OpenSource-Testsuite einer Konvertierungssoftware veröffentlicht.</p>
+ </publicationStmt>
+ <sourceDesc>
+ <p>Der hier erfasste Text entstammt einem größeren Forschungskorpus.</p>
+ </sourceDesc>
+ </fileDesc>
+ <language ident="de">Deutsch</language>
+ <editorialDecl xml:id="TEST.BSP.Metadaten.Autoren">
+ <interpretation>
+ <p>Dieses Korpus beinhaltet Metadaten zum Autor des Textes und weiteren, fiktiven Autoren. Eine Liste aller Autoren ist in der Sektion <gi corresp="#TEST.BSP.Autoren">particDesc</gi> zusammengestellt. Jeder Autor ist dabei als <tag scheme="TEI">person</tag> kodiert und führt Attribute mit Angaben zu seiner Altersklasse (<att scheme="TEI">age</att>) und seinem Geschlecht (<att scheme="TEI">sex</att>). Letzteres ist gemäß <ref target="http://microformats.org/wiki/gender-formats">vCard-Richtlinien</ref> kodiert. Die Zuordnung der Autoren zu ihren Texten regeln die Metadaten der Texte.</p>
+ <ab>
+ <elementSpec ident="person">
+ <attList>
+ <attDef ident="age">
+ <valList>
+ <valItem ident="A">
+ <desc>Kinder im Alter bis zu 6 Jahren</desc>
+ </valItem>
+ <valItem ident="B">
+ <desc>Kinder im Alter zwischen 7 und 10 Jahren (entspricht etwa den Schulklassen 1 bis 4)</desc>
+ </valItem>
+ <valItem ident="C">
+ <desc>Kinder im Alter zwischen 11 und 12 Jahren (entspricht etwa den Schulklassen 5 bis 6)</desc>
+ </valItem>
+ <valItem ident="D">
+ <desc>Kinder im Alter zwischen 13 und 14 Jahren (entspricht etwa den Schulklassen 7 bis 8)</desc>
+ </valItem>
+ <valItem ident="X">
+ <desc>Kinder, deren Alter nicht dokumentiert ist</desc>
+ </valItem>
+ </valList>
+ </attDef>
+ </attList>
+ </elementSpec>
+ </ab>
+ </interpretation>
+ </editorialDecl>
+ <particDesc xml:id="TEST.BSP.Autoren">
+ <person age="X" ana="#TEST.BSP.Metadaten.Autoren" n="1" sex="M" xml:id="TEST.BSP.Autoren.1"/>
+ <person age="A" ana="#TEST.BSP.Metadaten.Autoren" n="2" sex="M" xml:id="TEST.BSP.Autoren.2"/>
+ <person age="A" ana="#TEST.BSP.Metadaten.Autoren" n="3" sex="F" xml:id="TEST.BSP.Autoren.3"/>
+ <person age="B" ana="#TEST.BSP.Metadaten.Autoren" n="4" sex="M" xml:id="TEST.BSP.Autoren.4a"/>
+ <person age="C" ana="#TEST.BSP.Metadaten.Autoren" n="5" sex="F" xml:id="TEST.BSP.Autoren.4b"/>
+ <person age="A" ana="#TEST.BSP.Metadaten.Autoren" n="6" sex="F" xml:id="TEST.BSP.Autoren.5a"/>
+ <person age="B" ana="#TEST.BSP.Metadaten.Autoren" n="7" sex="F" xml:id="TEST.BSP.Autoren.5b"/>
+ <person age="B" ana="#TEST.BSP.Metadaten.Autoren" n="8" sex="F" xml:id="TEST.BSP.Autoren.5c"/>
+ <person age="C" ana="#TEST.BSP.Metadaten.Autoren" n="9" sex="M" xml:id="TEST.BSP.Autoren.6"/>
+ <person age="C" ana="#TEST.BSP.Metadaten.Autoren" n="10" sex="M" xml:id="TEST.BSP.Autoren.7"/>
+ <person age="A" ana="#TEST.BSP.Metadaten.Autoren" n="11" sex="F" xml:id="TEST.BSP.Autoren.8a"/>
+ <person age="A" ana="#TEST.BSP.Metadaten.Autoren" n="12" sex="F" xml:id="TEST.BSP.Autoren.8b"/>
+ <person age="C" ana="#TEST.BSP.Metadaten.Autoren" n="13" sex="M" xml:id="TEST.BSP.Autoren.9a"/>
+ <person age="C" ana="#TEST.BSP.Metadaten.Autoren" n="14" sex="M" xml:id="TEST.BSP.Autoren.9b"/>
+ <person age="A" ana="#TEST.BSP.Metadaten.Autoren" n="15" sex="F" xml:id="TEST.BSP.Autoren.10"/>
+ </particDesc>
+ <interpretation xml:id="TEST.BSP.Kodex">
+ <p>Dieses Korpus beinhaltet Metadaten zu den Texten. Eine Liste aller Texte ist in der folgenden Sektion <gi corresp="#TEST.BSP.Texte">editorialDecl</gi> zusammengestellt. Jeder als <tag scheme="TEI">item</tag> realisierter Listeneintrag führt neben einem vollständig strukturierten bibliographischen Unterblock mit Titel und Autorenreferenz auch die Angabe ihrer Verschriftlichungsart im Attribut (<att scheme="TEI">rendition</att>). Letzteres ist gemäß folgender Interpretation kodiert:</p>
+ <ab>
+ <elementSpec ident="item">
+ <attList>
+ <attDef ident="rend">
+ <valList>
+ <valItem ident="M">
+ <desc>Manuskript, handgeschriebene Texte</desc>
+ </valItem>
+ <valItem ident="T">
+ <desc>Typoskript, maschinell verfasste Texte</desc>
+ </valItem>
+ <valItem ident="H">
+ <desc>Hybrid, Texte mit sowohl handgeschriebenem als auch maschinell verfasstem Anteil</desc>
+ </valItem>
+ <valItem ident="X">
+ <desc>Texte, deren Verschriftlichungsart unbekannt ist</desc>
+ </valItem>
+ </valList>
+ </attDef>
+ </attList>
+ </elementSpec>
+ </ab>
+ </interpretation>
+ <segmentation xml:id="TEST.BSP.Token">
+ <p>Der Text in diesem Korpus wurde mit der Software <ref target="https://github.com/DFKI-MLT/JTok">jTok</ref> tokenisiert. Im Ergebnis wurden Sätze mit <tag scheme="TEI">s</tag>, Wörter mit <tag scheme="TEI">w</tag> und Satzpunktuation mit <tag scheme="TEI">c</tag> ausgezeichnet. Ferner wurden auf Textebene absatzübergreifend alle Sätze und auf Satzebene durchgängig alle Wörter und jede Satzpunktuation im jeweiligen Attribut <att scheme="TEI">n</att> und bei 1 beginnend durchgezählt.</p>
+ </segmentation>
+ <interpretation xml:id="TEST.BSP.POS">
+ <p>Dieses Korpus verwendet ein Wortart-Tagging nach dem Stuttgart-Tübingen-Tagset (<ref target="http://www.ims.uni-stuttgart.de/forschung/ressourcen/lexika/TagSets/stts-table.html">STTS</ref>). Dabei wurden drei ursprüngliche Tags ("$.", "$," und "$(") in ("_ENDE", "_KOMMA" und "_SONST") umbennant, um den Validitätsrichtlinien für XML-Identifikatoren (beschrieben in der <ref target="http://www.w3.org/TR/2006/REC-xml-20060816/">W3C-Empfehlung für XML 1.0 vom 16.08.2006</ref>) zu genügen.</p>
+ <ab>
+ <interpGrp type="annotation">
+ <interp xml:id="TEST.BSP.POS.ADJA">attributives Adjektiv</interp>
+ <interp xml:id="TEST.BSP.POS.ADJD">adverbiales oder prädikatives Adjektiv</interp>
+ <interp xml:id="TEST.BSP.POS.ADV">Adverb</interp>
+ <interp xml:id="TEST.BSP.POS.APPO">Postposition</interp>
+ <interp xml:id="TEST.BSP.POS.APPR">Präposition; Zirkumposition links</interp>
+ <interp xml:id="TEST.BSP.POS.APPRART">Präposition mit Artikel</interp>
+ <interp xml:id="TEST.BSP.POS.APZR">Zirkumposition rechts</interp>
+ <interp xml:id="TEST.BSP.POS.ART">bestimmter oder unbestimmter Artikel</interp>
+ <interp xml:id="TEST.BSP.POS.CARD">Kardinalzahl</interp>
+ <interp xml:id="TEST.BSP.POS.FM">Fremdsprachliches Material</interp>
+ <interp xml:id="TEST.BSP.POS.ITJ">Interjektion</interp>
+ <interp xml:id="TEST.BSP.POS.KOKOM">Vergleichskonjunktion</interp>
+ <interp xml:id="TEST.BSP.POS.KON">nebenordnende Konjunktion</interp>
+ <interp xml:id="TEST.BSP.POS.KOUI">unterordnende Konjunktion mit "zu" und Infinitiv</interp>
+ <interp xml:id="TEST.BSP.POS.KOUS">unterordnende Konjunktion mit Satz</interp>
+ <interp xml:id="TEST.BSP.POS.NE">normales Nomen</interp>
+ <interp xml:id="TEST.BSP.POS.NN">Eigennamen</interp>
+ <interp xml:id="TEST.BSP.POS.NNE">normales Nomen mit Eigennamen</interp>
+ <interp xml:id="TEST.BSP.POS.PAV">Pronominaladverb</interp>
+ <interp xml:id="TEST.BSP.POS.PDAT">attribuierendes Demonstrativpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PDS">substituierendes Demonstrativpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PIAT">attribuierendes Indefinitpronomen ohne Determiner</interp>
+ <interp xml:id="TEST.BSP.POS.PIDAT">attribuierendes Indefinitpronomen mit Determiner</interp>
+ <interp xml:id="TEST.BSP.POS.PIS">substituierendes Indefinitpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PPER">irreflexives Personalpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PPOSAT">attribuierendes Possessivpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PPOSS">substituierendes Possessivpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PRELAT">attribuierendes Relativpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PRELS">substituierendes Relativpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PRF">reflexives Personalpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PROAV">Pronominaladverb</interp>
+ <interp xml:id="TEST.BSP.POS.PTKA">Partikel bei Adjektiv oder Adverb</interp>
+ <interp xml:id="TEST.BSP.POS.PTKANT">Antwortpartikel</interp>
+ <interp xml:id="TEST.BSP.POS.PTKNEG">Negationspartikel</interp>
+ <interp xml:id="TEST.BSP.POS.PTKVZ">abgetrennter Verbzusatz</interp>
+ <interp xml:id="TEST.BSP.POS.PTKZU">"zu" vor Infinitiv</interp>
+ <interp xml:id="TEST.BSP.POS.PWAT">attribuierendes Interrogativpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PWAV">adverbiales Interrogativ- oder Relativpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.PWS">substituierendes Interrogativpronomen</interp>
+ <interp xml:id="TEST.BSP.POS.TRUNC">Kompositions-Erstglied</interp>
+ <interp xml:id="TEST.BSP.POS.VAFIN">finites Verb, aux</interp>
+ <interp xml:id="TEST.BSP.POS.VAIMP">Imperativ, aux</interp>
+ <interp xml:id="TEST.BSP.POS.VAINF">Infinitiv, aux</interp>
+ <interp xml:id="TEST.BSP.POS.VAPP">Partizip Perfekt, aux</interp>
+ <interp xml:id="TEST.BSP.POS.VMFIN">finites Verb, modal</interp>
+ <interp xml:id="TEST.BSP.POS.VMINF">Infinitiv, modal</interp>
+ <interp xml:id="TEST.BSP.POS.VMPP">Partizip Perfekt, modal</interp>
+ <interp xml:id="TEST.BSP.POS.VVFIN">finites Verb, voll</interp>
+ <interp xml:id="TEST.BSP.POS.VVIMP">Imperativ, voll</interp>
+ <interp xml:id="TEST.BSP.POS.VVINF">Infinitiv, voll</interp>
+ <interp xml:id="TEST.BSP.POS.VVIZU">Infinitiv mit "zu", voll</interp>
+ <interp xml:id="TEST.BSP.POS.VVPP">Partizip Perfekt, voll</interp>
+ <interp xml:id="TEST.BSP.POS.XY">Nichtwort, Sonderzeichen enthaltend</interp>
+ <interp xml:id="TEST.BSP.POS._KOMMA">Komma</interp>
+ <interp xml:id="TEST.BSP.POS._SONST">sonstige Satzzeichen; satzintern</interp>
+ <interp xml:id="TEST.BSP.POS._ENDE">Satzbeendende Interpunktion</interp>
+ </interpGrp>
+ </ab>
+ </interpretation>
+</teiHeader>
\ No newline at end of file
diff --git a/t/sgbr/TEST/header.xml b/t/sgbr/TEST/header.xml
new file mode 100644
index 0000000..87a0b99
--- /dev/null
+++ b/t/sgbr/TEST/header.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="header.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+<!DOCTYPE idsCorpus PUBLIC "-//IDS//DTD IDS-XCES 1.0//EN" "http://corpora.ids-mannheim.de/idsxces1/DTD/ids.xcesdoc.dtd">
+<teiHeader>
+<korpusSigle>TEST</korpusSigle>
+</teiHeader>