Fix font-optimizer for Perl 5.18.
[librarian.git] / librarian / epub / xsltAnnotations.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3   <xsl:output method="html" version="1.0" encoding="utf-8" />
4   <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
5   <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
6
7   <xsl:template match="/">
8     <html xmlns="http://www.w3.org/1999/xhtml">
9       <head>
10         <link rel="stylesheet" href="style.css" type="text/css" />
11         <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
12         <title>
13           <xsl:text>Przypisy</xsl:text>
14         </title>
15       </head>
16       <body>
17         <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">
18           <div id="footnotes" xmlns="http://www.w3.org/1999/xhtml">
19             <h2 xmlns="http://www.w3.org/1999/xhtml">
20               Przypisy:
21             </h2>
22             <xsl:apply-templates mode="przypis" />
23           </div>
24         </div>
25       </body>
26     </html>
27   </xsl:template>
28
29   <xsl:template match="text()" >
30     <xsl:value-of select="." />
31   </xsl:template>
32
33   <xsl:template match="pa|pe|pr|pt" mode="przypis">
34     <p id="annotation-{@number}" class="annotation" xmlns="http://www.w3.org/1999/xhtml">
35         <a href="part{@part}.html#anchor-{@number}" xmlns="http://www.w3.org/1999/xhtml">
36                 <xsl:value-of select="@number" />
37         </a>. 
38         <xsl:apply-templates />
39         <xsl:if test="name()='pa'"> [przypis autorski]</xsl:if>
40     </p>
41   </xsl:template>
42
43   <xsl:template match="slowo_obce">
44     <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
45       <xsl:apply-templates select="text()" />
46     </em>
47   </xsl:template>
48
49   <xsl:template match="akap|akap_cd">
50     <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
51       <xsl:apply-templates />
52     </p>
53   </xsl:template>
54
55   <xsl:template match="strofa">
56     <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
57       <xsl:apply-templates />
58     </div>
59   </xsl:template>
60
61   <xsl:template match="tytul_dziela" >
62     <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
63       <xsl:if test="@typ = '1'" >„</xsl:if>
64       <xsl:apply-templates />
65       <xsl:if test="@typ = '1'">”</xsl:if>
66     </em>
67   </xsl:template>
68
69   <xsl:template match="wers_normalny">
70     <p class="verse" xmlns="http://www.w3.org/1999/xhtml">
71       <xsl:apply-templates />
72     </p>
73   </xsl:template>
74
75 </xsl:stylesheet>