add tag ramka
[librarian.git] / 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 Nowoczesna Polska. 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="dlugi_cytat|motto|dedykacja|nota">
23                 <cite><xsl:apply-templates mode="para"/></cite>
24         </xsl:template>
25
26         <xsl:template mode="para" match="srodtytul">
27                 <p><strong><xsl:apply-templates mode="inline"/></strong></p>
28         </xsl:template>
29
30         <xsl:template mode="para" match="sekcja_swiatlo">
31                 <empty-line/><empty-line/><empty-line/>
32         </xsl:template>
33
34         <xsl:template mode="para" match="sekcja_asterysk">
35                 <empty-line/><p>*</p><empty-line/>
36         </xsl:template>
37
38         <xsl:template mode="para" match="separator_linia">
39                 <empty-line/><p>————————</p><empty-line/>
40         </xsl:template>
41
42         <xsl:template mode="para" match="tabela|tabelka">
43                 <table><xsl:apply-templates mode="para" /></table>
44         </xsl:template>
45         <xsl:template mode="para" match="wiersz">
46                 <tr><xsl:apply-templates mode="para" /></tr>
47         </xsl:template>
48         <xsl:template mode="para" match="kol">
49                 <td><xsl:apply-templates mode="inline" /></td>
50         </xsl:template>
51
52         <xsl:template mode="para" match="ramka">
53                 <xsl:apply-templates mode="para" />
54         </xsl:template>
55
56
57         <xsl:template mode="para" match="*"/>
58         <xsl:template mode="sections" match="*"/>
59 </xsl:stylesheet>