1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<!-- $Id: txt-teiab.xsl 2090 2013-10-24 15:23:22Z gabrielbodard $ -->
|
3
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
4
|
xmlns:t="http://www.tei-c.org/ns/1.0"
|
5
|
version="2.0">
|
6
|
|
7
|
<xsl:template match="t:ab">
|
8
|
<xsl:param name="parm-edition-type" tunnel="yes" required="no"></xsl:param>
|
9
|
<xsl:text>
|
10
|
</xsl:text>
|
11
|
<xsl:apply-templates/>
|
12
|
<!-- if next div or ab begins with lb[break=no], then add hyphen -->
|
13
|
<xsl:if test="following::t:lb[1][@break='no' or @type='inWord'] and not($parm-edition-type='diplomatic')">
|
14
|
<xsl:text>-</xsl:text>
|
15
|
</xsl:if>
|
16
|
</xsl:template>
|
17
|
|
18
|
</xsl:stylesheet>
|