blob: 9aef8ca2946a9786436d65c4962a67ba3cacc83b [file] [log] [blame]
Marc Kupietz28f48e12024-04-14 16:17:05 +02001<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2 xmlns:saxon="http://saxon.sf.net/"
3 exclude-result-prefixes="saxon">
4
5 <xsl:output method="xml" indent="yes" saxon:line-length="1000"
6 doctype-public="-//IDS//DTD IDS-I5 1.0//EN"
7 doctype-system="http://corpora.ids-mannheim.de/I5/DTD/i5.dtd"
8 />
9
10 <xsl:mode on-no-match="shallow-copy"/>
11
12
13 <xsl:template match="p[descendant::div|descendant::p]" priority="1.0">
14 <div type="section">
15 <xsl:apply-templates/>
16 </div>
17 </xsl:template>
18
19 <xsl:template match="(ref|emph|hi|text())[parent::div]" priority="1.0">
20 <p>
21 <xsl:apply-templates/>
22 </p>
23 </xsl:template>
24
25 <xsl:template match="head[parent::p]">
26 <hi rend="bold">
27 <xsl:value-of select="."/>
28 </hi>
29 </xsl:template>
30
31 <xsl:template match="hi[parent::div]">
32 <p>
33 <xsl:apply-templates/>
34 </p>
35 </xsl:template>
36
37</xsl:stylesheet>