-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathteiorig.xsl
More file actions
21 lines (18 loc) · 850 Bytes
/
teiorig.xsl
File metadata and controls
21 lines (18 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:t="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="t"
version="2.0">
<xsl:template match="t:orig" priority="1">
<xsl:choose>
<xsl:when test="parent::t:choice"><xsl:apply-templates/></xsl:when>
<xsl:otherwise>
<xsl:variable name="origChildren">
<xsl:apply-templates/>
</xsl:variable>
<!-- Emit all uppercase characters for all text children of t:orig -->
<xsl:value-of select="translate($origChildren, $all-grc, $grc-upper-strip)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>