1 <?xml version="1.0" encoding="utf-8"?>
4 # This file is part of Librarian.
6 # Copyright © 2008,2009,2010 Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org.pl>
8 # For full list of contributors see AUTHORS file.
10 # This program is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU Affero General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
13 # (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Affero General Public License for more details.
20 # You should have received a copy of the GNU Affero General Public License
21 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24 <xsl:stylesheet version="1.0"
25 xmlns="http://www.w3.org/1999/xhtml"
26 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
28 <xsl:param name="with-paths" select="boolean(0)" />
29 <xsl:param name="with-annotations" select="boolean(1)" />
31 <xsl:include href="wl2html_base.xslt" />
32 <xsl:output encoding="utf-8" indent="yes" omit-xml-declaration = "yes" />
34 <xsl:template match="/">
35 <div class="document">
37 <xsl:if test="with-toc" />
39 <xsl:apply-templates select="/utwor" mode="element-tag">
40 <xsl:with-param name="parentpath" select="''" />
41 <xsl:with-param name="offset" select="0" />
42 <xsl:with-param name="mixed" select="false()" />
43 </xsl:apply-templates>
45 <xsl:if test="with-annotations" />