content
[librarian.git] / src / librarian / fb2 / paragraphs.xslt
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3
4         This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
5         Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
6
7 -->
8 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9         xmlns:wl="http://wolnelektury.pl/functions"
10         xmlns:dc="http://purl.org/dc/elements/1.1/"
11         xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"
12         xmlns:l="http://www.w3.org/1999/xlink">
13
14         <!-- in paragraph mode -->
15
16         <xsl:template mode="para" match="akap|akap_dialog|akap_cd|motto_podpis">
17                 <!-- paragraphs & similar -->
18
19                 <p><xsl:apply-templates mode="inline"/></p>
20         </xsl:template>
21
22         <xsl:template mode="para" match="werset">
23                 <!-- paragraphs & similar -->
24
25                 <p><xsl:apply-templates mode="inline"/></p>
26         </xsl:template>
27
28         <xsl:template mode="para" match="dlugi_cytat|motto|dedykacja|nota">
29                 <cite><xsl:apply-templates mode="para"/></cite>
30         </xsl:template>
31
32         <xsl:template mode="para" match="srodtytul|podtytul_czesc|podtytul_rozdzial|podtytul_podrozdzial|podtytul_akt|podtytul_scena">
33                 <p><strong><xsl:apply-templates mode="inline"/></strong></p>
34         </xsl:template>
35
36         <xsl:template mode="para" match="sekcja_swiatlo">
37                 <empty-line/><empty-line/><empty-line/>
38         </xsl:template>
39
40         <xsl:template mode="para" match="sekcja_asterysk">
41                 <empty-line/><p>*</p><empty-line/>
42         </xsl:template>
43
44         <xsl:template mode="para" match="separator_linia">
45                 <empty-line/><p>————————</p><empty-line/>
46         </xsl:template>
47
48         <xsl:template mode="para" match="tabela|tabelka">
49                 <table><xsl:apply-templates mode="para" /></table>
50         </xsl:template>
51         <xsl:template mode="para" match="wiersz">
52                 <tr><xsl:apply-templates mode="para" /></tr>
53         </xsl:template>
54         <xsl:template mode="para" match="kol">
55                 <td><xsl:apply-templates mode="inline" /></td>
56         </xsl:template>
57
58         <xsl:template mode="para" match="ramka">
59                 <xsl:apply-templates mode="para" />
60         </xsl:template>
61
62
63         <xsl:template mode="para" match="*"/>
64         <xsl:template mode="sections" match="*"/>
65 </xsl:stylesheet>