Save xhtml file (chapters) with the right xhtml structure