1 <?xml version="1.0" encoding="utf-8"?>
4 This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
5 Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
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">
14 <xsl:include href="footnotes.xslt"/>
15 <xsl:include href="inline.xslt"/>
16 <xsl:include href="paragraphs.xslt"/>
17 <xsl:include href="poems.xslt"/>
18 <xsl:include href="sections.xslt"/>
20 <xsl:strip-space elements="*"/>
21 <xsl:output encoding="utf-8" method="xml" indent="yes"/>
23 <xsl:template match="utwor">
25 <xsl:apply-templates mode="outer"/>
27 <body name="footnotes">
28 <xsl:apply-templates mode="footnotes"/>
33 <xsl:template match="dc:*" mode="outer">
36 <xsl:template match="powiesc|opowiadanie" mode="outer">
37 <body> <!-- main body for main book flow -->
38 <xsl:if test="autor_utworu or nazwa_utworu">
40 <xsl:apply-templates mode="para"
41 select="autor_utworu|nazwa_utworu"/>
45 <xsl:apply-templates mode="sections"/>