Housekeeping.
[librarian.git] / src / librarian / fb2 / poems.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         <!-- poems -->
15
16         <!-- match poem citations -->
17         <xsl:template mode="para" match="poezja_cyt">
18                 <cite>
19                         <poem>
20                                 <xsl:apply-templates mode="para"/>
21                         </poem>
22                 </cite>
23         </xsl:template>
24
25         <!-- regular poem elements -->
26         <xsl:template mode="para" match="strofa">
27                 <stanza>
28                         <xsl:apply-templates mode="poem"/>
29                 </stanza>
30         </xsl:template>
31
32         <xsl:template mode="inline" match="strofa">
33                 <xsl:apply-templates select="." mode="para"/>
34         </xsl:template>
35
36         <!-- XXX: it should be done elsewhere but our cheap verse splitting
37                 puts it here -->
38         <xsl:template match="motyw" mode="poem"/>
39
40         <xsl:template mode="poem" match="wers_normalny|wers_cd|wers_wciety|wers_akap|wers_do_prawej">
41                 <v><xsl:apply-templates mode="inline"/></v>
42         </xsl:template>
43 </xsl:stylesheet>