Wooo, sigil managed to impress me today.
I have books in an epub and wanted to split them.
I finally splited the ePub then created a new with with sigil. Add existing element. Sigil adds all the html. Then "Right, now for css images and all".
Then, much to my surprise, sigil had already done the job for me

.