Quote:
Originally Posted by odedta
Alex, the validator fails my input because it doesn't have !DOCTYPE element, html files require a DOCTYPE to pass validation of W3Consortium.
If you run it passed ePubChecker it passes the check and that's all that matters as far it goes for eBook validation.
|
That's because the ePub spec does not require XHTML documents to be W3C-valid:
1.4.1.2: XHTML Content Document Requirements
A conformant XHTML Content Document
must meet these conditions:
- it is a well-formed XML document (as defined by XML 1.0); and
- it is encoded in UTF-8 or UTF-16; and
- it is a valid XML document according to the NVDL schema interaction provided in Appendix A; and
- it has a MIME media type of either application/xhtml+xml or text/x-oeb1-document (deprecated); and
- all XHTML elements and attributes not contained in an Inline XML Island are drawn from the XHTML subset identified in this document.
Valid XML yes, but the only XHTML mention is the last point.