1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<!-- $Id: teimilestone.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" exclude-result-prefixes="t"
|
5
|
version="2.0">
|
6
|
<!-- General template in [htm|txt]teimilestone.xsl -->
|
7
|
|
8
|
<xsl:template match="t:milestone[@unit='block']">
|
9
|
<!-- adds pipe for block, flanked by spaces if not within word -->
|
10
|
<xsl:if test="not(ancestor::w)">
|
11
|
<xsl:text> </xsl:text>
|
12
|
</xsl:if>
|
13
|
<xsl:text>|</xsl:text>
|
14
|
<xsl:if test="not(ancestor::w)">
|
15
|
<xsl:text> </xsl:text>
|
16
|
</xsl:if>
|
17
|
</xsl:template>
|
18
|
|
19
|
<xsl:template match="t:milestone[@rend = 'box']">
|
20
|
<xsl:param name="parm-apparatus-style" tunnel="yes" required="no"></xsl:param>
|
21
|
<xsl:if test="$parm-apparatus-style = 'ddbdp'">
|
22
|
<!-- Adds links/indication to apparatus - found in [htm|txt]-tpl-apparatus -->
|
23
|
<xsl:call-template name="app-link">
|
24
|
<xsl:with-param name="location" select="'text'"/>
|
25
|
</xsl:call-template>
|
26
|
</xsl:if>
|
27
|
</xsl:template>
|
28
|
</xsl:stylesheet>
|