I'm trying to convert PDFs to ePub, but automatic converters produce tons of extraneous code . I'm using Sigil and checking my hand-code with Flightcrew but also trying to comply with accessibility features as much as possible.
I want to use elements like "<header>" and "<section>" and "epub:type" attributes. If possible, I'd like to have a sort of standard template, that once created, will allow me to just paste text from the PDFs into the relevant sections of the ePub.
I was ok with doctypes and schema with html4 and xhtml, but if I ignore namespace doctypes in html5 and use "<!DOCTYPE html>", that produces multiple different types of errors from Flightcrew.
I want to avoid obsolete code, so how much - if any - of this lot is needed to be able to enable the elements and attributes I want to use?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns

ps=" http://www.idpf.org/2007/ops">
<?xml version="1.0" encoding="utf-8"?>
Thanks.