Epub: only attach images referenced in the text.
[librarian.git] / librarian / xslt / wl2html_full.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"
9     xmlns="http://www.w3.org/1999/xhtml"
10     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
11
12     <xsl:param name="with-paths" select="boolean(0)" />
13     <xsl:param name="with-annotations" select="boolean(1)" />
14
15     <xsl:include href="wl2html_base.xslt" />
16     <xsl:output encoding="utf-8" indent="yes" omit-xml-declaration = "yes" />
17
18     <xsl:template match="/">
19         <div class="document">
20
21             <xsl:if test="with-toc" />
22
23             <xsl:apply-templates select="/utwor" mode="element-tag">
24                 <xsl:with-param name="parentpath" select="''" />
25                 <xsl:with-param name="offset" select="0" />
26                 <xsl:with-param name="mixed" select="false()" />
27             </xsl:apply-templates>
28
29             <xsl:if test="with-annotations" />
30         </div>
31     </xsl:template>
32
33 </xsl:stylesheet>