forked from EpiDoc/Stylesheets
-
Notifications
You must be signed in to change notification settings - Fork 1
/
fo-teinote.xsl
22 lines (20 loc) · 917 Bytes
/
fo-teinote.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!-- $Id$ --><xsl:stylesheet xmlns:fo="http://www.w3.org/1999/XSL/Format" 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">
<!-- Template in teinote.xsl -->
<xsl:import href="teinote.xsl"/>
<xsl:template match="t:note">
<xsl:param name="parm-leiden-style" tunnel="yes" required="no"/>
<xsl:choose>
<xsl:when test="$parm-leiden-style='iospe' and (ancestor::t:p or ancestor::t:l or ancestor::t:ab)">
<xsl:apply-imports/>
</xsl:when>
<xsl:when test="ancestor::t:p or ancestor::t:l or ancestor::t:ab">
<fo:inline font-style="italic"><xsl:apply-imports/></fo:inline>
</xsl:when>
<xsl:otherwise>
<fo:block>
<xsl:apply-imports/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>