Fixed to run and pass all tests.
[librarian.git] / librarian / xslt / wl2html_full.xslt
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 #
4 #    This file is part of Librarian.
5 #
6 #    Copyright © 2008,2009,2010 Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org.pl>
7 #    
8 #    For full list of contributors see AUTHORS file. 
9 #
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.
14 #
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.
19 #
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/>.
22 #
23 -->
24 <xsl:stylesheet version="1.0"    
25     xmlns="http://www.w3.org/1999/xhtml"    
26     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
27
28     <xsl:param name="with-paths" select="boolean(0)" />       
29     <xsl:param name="with-annotations" select="boolean(1)" />
30     
31     <xsl:include href="wl2html_base.xslt" />
32     <xsl:output encoding="utf-8" indent="yes" omit-xml-declaration = "yes" />
33
34     <xsl:template match="/">
35         <div class="document">
36
37             <xsl:if test="with-toc" />
38
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>
44
45             <xsl:if test="with-annotations" />
46         </div>
47     </xsl:template>
48
49 </xsl:stylesheet>