subsection_element = etree.SubElement(subsection_list, 'li')
add_anchor(subsection_element, "s%d" % n, with_target=False, link_text=text)
+ if root.tag == 'html':
+ # in case of full-page output
+ root = root[-1][0]
root.insert(0, toc)
+
def extract_annotations(html_path):
<head>
<title><xsl:apply-templates mode="inline" select="//nazwa_utworu" /></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
- </head>
- <style>
+ <style>
body {
font-size: 16px;
font: Georgia, "Times New Roman", serif;
@media print {
#menu {display: none;}
}
- </style>
+ </style>
+ </head>
<body>
<xsl:call-template name="book-text" />
</body>