aboutsummaryrefslogtreecommitdiff
path: root/xsl/tei2dictxml.xsl
blob: 9f2f8922a878637ce7c9ba630c2916b0f047568f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version='1.0' encoding='UTF-8'?>

<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="xml" omit-xml-declaration="yes" encoding="UTF-8"/>


  <xsl:template match="text()">
    <xsl:value-of select="normalize-space(.)"/>
  </xsl:template>


  <xsl:template match="teiHeader">
  </xsl:template>

  <xsl:template match="orth">
    <xsl:apply-templates/>
  </xsl:template>



<xsl:template match="TEI.2">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="text">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="body">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="entry"><xsl:text>&#x0A;_____&#x0A;&#x0A;</xsl:text><xsl:value-of select="form/orth"/>&#x0A;
<xsl:text>&#x0A;&#x0A;</xsl:text><entry><xsl:apply-templates select='@* | node()'/></entry>
</xsl:template>

<xsl:template match='@* | node()'>
<xsl:copy><xsl:apply-templates select='@* | node()'/></xsl:copy>
</xsl:template>

</xsl:stylesheet>