elif children:
# write title page for every parent
html_tree = xslt(input_xml, res('xsltChunkTitle.xsl'))
chars = used_chars(html_tree.getroot())
zip.writestr('OPS/part%d.html' % chunk_counter,
elif children:
# write title page for every parent
html_tree = xslt(input_xml, res('xsltChunkTitle.xsl'))
chars = used_chars(html_tree.getroot())
zip.writestr('OPS/part%d.html' % chunk_counter,