chunk_html, chunk_toc = transform_chunk(chunk_xml, chunk_counter, annotations)
toc.extend(chunk_toc)
zip.writestr('OPS/part%d.html' % chunk_counter, chunk_html)
chunk_html, chunk_toc = transform_chunk(chunk_xml, chunk_counter, annotations)
toc.extend(chunk_toc)
zip.writestr('OPS/part%d.html' % chunk_counter, chunk_html)