fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wide PDF cover.
[librarian.git]
/
librarian
/
fb2
/
footnotes.xslt
diff --git
a/librarian/fb2/footnotes.xslt
b/librarian/fb2/footnotes.xslt
index
663b2a3
..
09270b9
100644
(file)
--- a/
librarian/fb2/footnotes.xslt
+++ b/
librarian/fb2/footnotes.xslt
@@
-12,26
+12,31
@@
xmlns:l="http://www.w3.org/1999/xlink">
<!-- footnote body mode -->
xmlns:l="http://www.w3.org/1999/xlink">
<!-- footnote body mode -->
- <xsl:template match="p
e
" mode="footnotes">
+ <xsl:template match="p
a|pe|pr|pt
" mode="footnotes">
<!-- we number them absolutely -->
<!-- we number them absolutely -->
- <xsl:variable name="n" select="count(preceding::p
e
) + 1"/>
+ <xsl:variable name="n" select="count(preceding::p
a) + count(preceding::pe) + count(preceding::pr) + count(preceding::pt
) + 1"/>
<xsl:element name="section">
<xsl:attribute name="id">fn<xsl:value-of select="$n"/></xsl:attribute>
<xsl:element name="section">
<xsl:attribute name="id">fn<xsl:value-of select="$n"/></xsl:attribute>
- <p><xsl:apply-templates mode="inline"/></p>
+ <p><xsl:apply-templates mode="inline"/>
+ <xsl:if test="local-name() = 'pa'">
+ <xsl:text> [przypis autorski]</xsl:text>
+ </xsl:if></p>
</xsl:element>
</xsl:template>
<xsl:template match="text()" mode="footnotes"/>
<!-- footnote links -->
</xsl:element>
</xsl:template>
<xsl:template match="text()" mode="footnotes"/>
<!-- footnote links -->
- <xsl:template match="p
e
" mode="inline">
- <xsl:variable name="n" select="count(preceding::p
e
) + 1"/>
+ <xsl:template match="p
a|pe|pr|pt
" mode="inline">
+ <xsl:variable name="n" select="count(preceding::p
a) + count(preceding::pe) + count(preceding::pr) + count(preceding::pt
) + 1"/>
<xsl:element name="a">
<xsl:attribute name="type">note</xsl:attribute>
<xsl:attribute name="l:href">#fn<xsl:value-of select="$n"/></xsl:attribute>
<xsl:element name="a">
<xsl:attribute name="type">note</xsl:attribute>
<xsl:attribute name="l:href">#fn<xsl:value-of select="$n"/></xsl:attribute>
- [<xsl:value-of select="$n"/>]
+ <xsl:text>[</xsl:text>
+ <xsl:value-of select="$n"/>
+ <xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</xsl:element>
</xsl:template>
</xsl:stylesheet>