我从epubcheck得到了一些似乎没有意义的输出。我不明白这些错误消息是什么意思,我希望其他人能帮助我。
epubcheck的输出为:
Epubcheck Version 3.0b4
Validating against EPUB version 2.0
ERROR: /path/to/my/book.epub/sub_html_file.html(134,117): text not allowed here; expected element "td" or "th"然后还有成百上千的其他消息。违规文件的第134行如下所示
<hr class="calibre29"/>
<table border="0" cellpadding="0" cellspacing="0" class="calibre53">
<tr class="calibre56"> 1
<td class="calibre55" valign="top">
<p class="calibre30"><span class="calibre21"><strong class="calibre8">Person(s)</strong></span></p>
</td>让我困惑的是,这一行的第117位启动了td,这是epubcheck所说的它所需要的。
发布于 2012-05-23 00:04:15
这是一个简单的XHTML验证错误。如果您查看您的超文本标记语言(我稍微重新设置了它的格式),您将看到您的<tr>元素包含文本和元素内容。这是不允许的。<tr>的内容模型只包含<th>和<td>,没有其他内容。
您需要将“1”包装在一个元素中。
https://stackoverflow.com/questions/10686403
复制相似问题