Sure there are ways out of OpenOffice (there must be) and OO does not provide yet direct support for formatting EPUB as it does for PDF.
I was thinking we would follow on speaking about OO templates but now it seems we are going toward more specialized languages, of which I know nothing (but i noted the reference to the W3School

) so I have better step down.
Thank you for sharing your informations.