Initial FictionBook 2 output support.
[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="autor_utworu|nazwa_utworu|akap|akap_dialog">
17                 <!-- paragraphs & similar -->
18
19                 <p><xsl:apply-templates mode="inline"/></p>
20         </xsl:template>
21
22         <!-- in global scope -->
23
24         <xsl:template mode="sections" match="akap|akap_dialog">
25                 <!-- paragraphs & similar -->
26
27                 <p><xsl:apply-templates mode="inline"/></p>
28         </xsl:template>
29         <xsl:template mode="sections" match="autor_utworu|nazwa_utworu"/>
30 </xsl:stylesheet>