Readded XIP
diff --git a/t/artificial/xip/constituency.xml b/t/artificial/xip/constituency.xml
new file mode 100644
index 0000000..7db3ada
--- /dev/null
+++ b/t/artificial/xip/constituency.xml
@@ -0,0 +1,251 @@
+<?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="A01_APR.13047" version="KorAP-0.4" xmlns="http://ids-mannheim.de/ns/KorAP">
+ <spanList>
+ <span from="0" id="s2_n40" to="130">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">TOP</f>
+ </fs>
+ <rel label="dominates" target="s2_n60" />
+ </span>
+ <span from="0" id="s2_n60" to="130">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">MC</f>
+ </fs>
+ <rel label="dominates" target="s2_n57" />
+ <rel label="dominates" uri="morpho.xml#s2_n8" />
+ <rel label="dominates" target="s2_n50" />
+ <rel label="dominates" target="s2_n51" />
+ <rel label="dominates" target="s2_n54" />
+ <rel label="dominates" uri="morpho.xml#s2_n20" />
+ <rel label="dominates" target="s2_n59" />
+ </span>
+ <span from="0" id="s2_n57" to="30">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">PP</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n0" />
+ <rel label="dominates" target="s2_n53" />
+ </span>
+ <span from="0" id="s2_n0" to="3">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">PREP</f>
+ </fs>
+ </span>
+ <span from="4" id="s2_n53" to="30">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NP</f>
+ </fs>
+ <rel label="dominates" target="s2_n43" />
+ </span>
+ <span from="4" id="s2_n43" to="30">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NPA</f>
+ </fs>
+ <rel label="dominates" target="s2_n41" />
+ <rel label="dominates" target="s2_n42" />
+ <rel label="dominates" uri="morpho.xml#s2_n6" />
+ </span>
+ <span from="4" id="s2_n41" to="11">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">AP</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n2" />
+ </span>
+ <span from="4" id="s2_n2" to="11">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">ADJ</f>
+ </fs>
+ </span>
+ <span from="12" id="s2_n42" to="23">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">AP</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n4" />
+ </span>
+ <span from="12" id="s2_n4" to="23">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">ADJ</f>
+ </fs>
+ </span>
+ <span from="24" id="s2_n6" to="30">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NOUN</f>
+ </fs>
+ </span>
+ <span from="31" id="s2_n8" to="36">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">VERB</f>
+ </fs>
+ </span>
+ <span from="37" id="s2_n50" to="48">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NP</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n10" />
+ <rel label="dominates" target="s2_n44" />
+ </span>
+ <span from="37" id="s2_n10" to="40">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">DET</f>
+ </fs>
+ </span>
+ <span from="41" id="s2_n44" to="48">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NPA</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n12" />
+ </span>
+ <span from="41" id="s2_n12" to="48">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NOUN</f>
+ </fs>
+ </span>
+ <span from="49" id="s2_n51" to="64">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NP</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n14" />
+ <rel label="dominates" target="s2_n45" />
+ </span>
+ <span from="49" id="s2_n14" to="52">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">DET</f>
+ </fs>
+ </span>
+ <span from="53" id="s2_n45" to="64">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NPA</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n16" />
+ </span>
+ <span from="53" id="s2_n16" to="64">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NOUN</f>
+ </fs>
+ </span>
+ <span from="65" id="s2_n54" to="74">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NP</f>
+ </fs>
+ <rel label="dominates" target="s2_n46" />
+ </span>
+ <span from="65" id="s2_n46" to="74">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NPA</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n18" />
+ </span>
+ <span from="65" id="s2_n18" to="74">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NOUN</f>
+ </fs>
+ </span>
+ <span from="75" id="s2_n20" to="78">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">PTCL</f>
+ </fs>
+ </span>
+ <span from="78" id="s2_n59" to="130">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">INS</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n22" />
+ <rel label="dominates" target="s2_n58" />
+ <rel label="dominates" uri="morpho.xml#s2_n38" />
+ </span>
+ <span from="78" id="s2_n22" to="79">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">PUNCT</f>
+ </fs>
+ </span>
+ <span from="80" id="s2_n58" to="129">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">SC</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n24" />
+ <rel label="dominates" target="s2_n52" />
+ <rel label="dominates" target="s2_n55" />
+ <rel label="dominates" target="s2_n56" />
+ <rel label="dominates" uri="morpho.xml#s2_n34" />
+ <rel label="dominates" uri="morpho.xml#s2_n36" />
+ </span>
+ <span from="80" id="s2_n24" to="85">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">CONJ</f>
+ </fs>
+ </span>
+ <span from="86" id="s2_n52" to="97">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NP</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n26" />
+ <rel label="dominates" target="s2_n47" />
+ </span>
+ <span from="86" id="s2_n26" to="89">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">DET</f>
+ </fs>
+ </span>
+ <span from="90" id="s2_n47" to="97">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NPA</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n28" />
+ </span>
+ <span from="90" id="s2_n28" to="97">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NOUN</f>
+ </fs>
+ </span>
+ <span from="98" id="s2_n55" to="102">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NP</f>
+ </fs>
+ <rel label="dominates" target="s2_n48" />
+ </span>
+ <span from="98" id="s2_n48" to="102">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NPA</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n30" />
+ </span>
+ <span from="98" id="s2_n30" to="102">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NOUN</f>
+ </fs>
+ </span>
+ <span from="103" id="s2_n56" to="112">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NP</f>
+ </fs>
+ <rel label="dominates" target="s2_n49" />
+ </span>
+ <span from="103" id="s2_n49" to="112">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NPA</f>
+ </fs>
+ <rel label="dominates" uri="morpho.xml#s2_n32" />
+ </span>
+ <span from="103" id="s2_n32" to="112">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">NOUN</f>
+ </fs>
+ </span>
+ <span from="113" id="s2_n34" to="124">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">VERB</f>
+ </fs>
+ </span>
+ <span from="125" id="s2_n36" to="129">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">VERB</f>
+ </fs>
+ </span>
+ <span from="129" id="s2_n38" to="130">
+ <fs type="node" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="const">PUNCT</f>
+ </fs>
+ </span>
+ </spanList>
+</layer>
diff --git a/t/artificial/xip/dependency.xml b/t/artificial/xip/dependency.xml
new file mode 100644
index 0000000..af50dc8
--- /dev/null
+++ b/t/artificial/xip/dependency.xml
@@ -0,0 +1,85 @@
+<?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="A01_APR.13047" version="KorAP-0.4" xmlns="http://ids-mannheim.de/ns/KorAP">
+ <spanList>
+ <span from="0" id="s2_n57" to="30">
+ <rel label="VMOD">
+ <span from="31" to="36" />
+ </rel>
+ </span>
+ <span from="4" id="s2_n2" to="11">
+ <rel label="NMOD">
+ <span from="24" to="30" />
+ </rel>
+ </span>
+ <span from="12" id="s2_n4" to="23">
+ <rel label="NMOD">
+ <span from="24" to="30" />
+ </rel>
+ </span>
+ <span from="31" id="s2_n8" to="36">
+ <rel label="VMAIN" type="unary" />
+ </span>
+ <span from="37" id="s2_n10" to="40">
+ <rel label="DETERM">
+ <span from="41" to="48" />
+ </rel>
+ </span>
+ <span from="41" id="s2_n12" to="48">
+ <rel label="SUBJ">
+ <span from="31" to="36" />
+ </rel>
+ </span>
+ <span from="49" id="s2_n14" to="52">
+ <rel label="DETERM">
+ <span from="53" to="64" />
+ </rel>
+ </span>
+ <span from="53" id="s2_n16" to="64">
+ <rel label="NMOD">
+ <span from="41" to="48" />
+ </rel>
+ </span>
+ <span from="65" id="s2_n18" to="74">
+ <rel label="NMOD">
+ <span from="53" to="64" />
+ </rel>
+ </span>
+ <span from="75" id="s2_n20" to="78">
+ <rel label="VPREF">
+ <span from="31" to="36" />
+ </rel>
+ </span>
+ <span from="80" id="s2_n24" to="85">
+ <rel label="CONNECT">
+ <span from="113" to="124" />
+ </rel>
+ </span>
+ <span from="86" id="s2_n26" to="89">
+ <rel label="DETERM">
+ <span from="90" to="97" />
+ </rel>
+ </span>
+ <span from="90" id="s2_n28" to="97">
+ <rel label="SUBJ">
+ <span from="113" to="124" />
+ </rel>
+ </span>
+ <span from="98" id="s2_n30" to="102">
+ <rel label="OBJ">
+ <span from="113" to="124" />
+ </rel>
+ </span>
+ <span from="103" id="s2_n32" to="112">
+ <rel label="OBJ">
+ <span from="113" to="124" />
+ </rel>
+ </span>
+ <span from="113" id="s2_n34" to="124">
+ <rel label="AUXIL">
+ <span from="125" to="129" />
+ </rel>
+ <rel label="VMAIN" type="unary" />
+ </span>
+ </spanList>
+</layer>
diff --git a/t/artificial/xip/morpho.xml b/t/artificial/xip/morpho.xml
new file mode 100644
index 0000000..72eeec0
--- /dev/null
+++ b/t/artificial/xip/morpho.xml
@@ -0,0 +1,206 @@
+<?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="A01_APR.13047" version="KorAP-0.4" xmlns="http://ids-mannheim.de/ns/KorAP">
+ <spanList>
+ <span from="0" id="s2_n0" to="3">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">zu</f>
+ <f name="pos">PREP</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="4" id="s2_n2" to="11">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">letzt</f>
+ <f name="pos">ADJ</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="12" id="s2_n4" to="23">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">kulturell</f>
+ <f name="pos">ADJ</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="24" id="s2_n6" to="30">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Anlass</f>
+ <f name="pos">NOUN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="31" id="s2_n8" to="36">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">=laden</f>
+ <f name="pos">VERB</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="37" id="s2_n10" to="40">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">die</f>
+ <f name="pos">DET</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="41" id="s2_n12" to="48">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Leitung</f>
+ <f name="pos">NOUN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="49" id="s2_n14" to="52">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">der</f>
+ <f name="pos">DET</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="53" id="s2_n16" to="64">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">schulen#Heim</f>
+ <f name="pos">NOUN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="65" id="s2_n18" to="74">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Hofbergli</f>
+ <f name="pos">NOUN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="75" id="s2_n20" to="78">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">ein</f>
+ <f name="pos">PTCL</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="78" id="s2_n22" to="79">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">,</f>
+ <f name="pos">PUNCT</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="80" id="s2_n24" to="85">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">bevor</f>
+ <f name="pos">CONJ</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="86" id="s2_n26" to="89">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">der</f>
+ <f name="pos">DET</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="90" id="s2_n28" to="97">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Betrieb</f>
+ <f name="pos">NOUN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="98" id="s2_n30" to="102">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">Ende</f>
+ <f name="pos">NOUN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="103" id="s2_n32" to="112">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">schulen#Jahr</f>
+ <f name="pos">NOUN</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="113" id="s2_n34" to="124">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">ein=stellen</f>
+ <f name="pos">VERB</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="125" id="s2_n36" to="129">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">werden</f>
+ <f name="pos">VERB</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ <span from="129" id="s2_n38" to="130">
+ <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+ <f name="lex">
+ <fs>
+ <f name="lemma">.</f>
+ <f name="pos">PUNCT</f>
+ </fs>
+ </f>
+ </fs>
+ </span>
+ </spanList>
+</layer>
diff --git a/t/artificial/xip/sentences.xml b/t/artificial/xip/sentences.xml
new file mode 100644
index 0000000..18e7dbc
--- /dev/null
+++ b/t/artificial/xip/sentences.xml
@@ -0,0 +1,7 @@
+<?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="A01_APR.13047" version="KorAP-0.4" xmlns="http://ids-mannheim.de/ns/KorAP">
+ <spanList>
+ <span from="0" to="130" />
+ </spanList>
+</layer>