blob: ec498ea193bb4262e1c9ae0edb569427f4be1dde (
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
|
<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.tei-c.org/ns/1.0">
<xsl:output encoding="UTF-8" indent="yes" />
<xsl:strip-space elements="*"/>
<xsl:template match="text()[not(string-length(normalize-space()))]"/>
<!--
If xsltproc did version 2
<xsl:template match=":text/:body">
-->
<xsl:template match="*[local-name() = 'text']/*[local-name() = 'body']">
<body>
<xsl:apply-templates select="*[local-name() = 'entry']">
<xsl:sort select="*[local-name() = 'form']/*[local-name() = 'orth']"/>
</xsl:apply-templates>
</body>
</xsl:template>
<xsl:template match='@*|node()'>
<xsl:copy>
<xsl:apply-templates select='@*|node()'/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
|