# -*- coding: utf-8 -*-
+#
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
import os
import cStringIO
import re
]
STYLESHEETS = {
- 'legacy': 'book2html.xslt',
- 'full': 'wl2html_full.xslt',
- 'partial': 'wl2html_partial.xslt'
+ 'legacy': 'xslt/book2html.xslt',
+ 'full': 'xslt/wl2html_full.xslt',
+ 'partial': 'xslt/wl2html_partial.xslt'
}
def get_stylesheet(name):
return result
return True
else:
- print "[Librarian] didn't find any paragraphs"
return "<empty />"
except KeyError:
raise ValueError("'%s' is not a valid stylesheet.")