Run xslt pass 2 and three on the whole year volumes
very fast...
diff --git a/xslt/pass2.xsl b/xslt/pass2.xsl
new file mode 100644
index 0000000..9aef8ca
--- /dev/null
+++ b/xslt/pass2.xsl
@@ -0,0 +1,37 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:saxon="http://saxon.sf.net/"
+ exclude-result-prefixes="saxon">
+
+ <xsl:output method="xml" indent="yes" saxon:line-length="1000"
+ doctype-public="-//IDS//DTD IDS-I5 1.0//EN"
+ doctype-system="http://corpora.ids-mannheim.de/I5/DTD/i5.dtd"
+ />
+
+ <xsl:mode on-no-match="shallow-copy"/>
+
+
+ <xsl:template match="p[descendant::div|descendant::p]" priority="1.0">
+ <div type="section">
+ <xsl:apply-templates/>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="(ref|emph|hi|text())[parent::div]" priority="1.0">
+ <p>
+ <xsl:apply-templates/>
+ </p>
+ </xsl:template>
+
+ <xsl:template match="head[parent::p]">
+ <hi rend="bold">
+ <xsl:value-of select="."/>
+ </hi>
+ </xsl:template>
+
+ <xsl:template match="hi[parent::div]">
+ <p>
+ <xsl:apply-templates/>
+ </p>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/xslt/pass3.xsl b/xslt/pass3.xsl
new file mode 100644
index 0000000..69ae2aa
--- /dev/null
+++ b/xslt/pass3.xsl
@@ -0,0 +1,18 @@
+<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:saxon="http://saxon.sf.net/"
+ exclude-result-prefixes="saxon">
+
+ <xsl:output method="xml" indent="yes" saxon:line-length="1000"
+ doctype-public="-//IDS//DTD IDS-I5 1.0//EN"
+ doctype-system="http://corpora.ids-mannheim.de/I5/DTD/i5.dtd"
+ />
+
+ <xsl:mode on-no-match="shallow-copy"/>
+
+ <xsl:template match="hi[parent::div]">
+ <p>
+ <xsl:apply-templates/>
+ </p>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/xslt/unnest_p.xsl b/xslt/unnest_p.xsl
deleted file mode 100644
index 26e2cbd..0000000
--- a/xslt/unnest_p.xsl
+++ /dev/null
@@ -1,15 +0,0 @@
-<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:saxon="http://saxon.sf.net/"
- exclude-result-prefixes="saxon">
-
- <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" saxon:line-length="1000"/>
-
- <xsl:template match="p/p">
- <span>
- <xsl:apply-templates/>
- </span>
- </xsl:template>
-
- <xsl:mode on-no-match="shallow-copy"/>
-
-</xsl:stylesheet>