- for element in chunk_xml[0]:
- if element.tag in ("naglowek_czesc", "naglowek_rozdzial", "naglowek_akt", "srodtytul"):
- toc.add(node_name(element), "part%d.html" % chunk_no)
- elif element.tag in ('naglowek_podrozdzial', 'naglowek_scena'):
- subnumber = toc.add(node_name(element), "part%d.html" % chunk_no, level=1, is_part=False)
- element.set('sub', str(subnumber))
+ #for element in chunk_xml[0]:
+ # if element.tag in ("naglowek_czesc", "naglowek_rozdzial", "naglowek_akt", "srodtytul"):
+ # toc.add(node_name(element), "part%d.html" % chunk_no)
+ # elif element.tag in ('naglowek_podrozdzial', 'naglowek_scena'):
+ # subnumber = toc.add(node_name(element), "part%d.html" % chunk_no, level=1, is_part=False)
+ # element.set('sub', str(subnumber))