-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathclean-up.xsl
22 lines (21 loc) · 995 Bytes
/
clean-up.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs" version="2.0"
xmlns="http://www.tei-c.org/ns/1.0"
xpath-default-namespace="http://www.tei-c.org/ns/1.0">
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="body[not(normalize-space(.))]"/>
<xsl:template match="closer[not(normalize-space(.))]"/>
<xsl:template match="front[not(normalize-space(.))]"/>
<xsl:template match="head[not(normalize-space(.))]"/>
<xsl:template match="l[not(normalize-space(.))]"/>
<xsl:template match="sp[not(normalize-space(.))]"/>
<xsl:template match="speaker[not(normalize-space(.))]"/>
<xsl:template match="stage[not(normalize-space(.))]"/>
<xsl:template match="text[not(normalize-space(.))]"/>
</xsl:stylesheet>