一千萬個為什麽

搜索

XML聲明中“版本”後面的值必須是帶引號的字符串



所有頁面上的xml字符串都是相同的(.xhtml文件) 這裏是一個例子:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE HTML>
   

我感謝幫助!

轉載註明原文: XML聲明中“版本”後面的值必須是帶引號的字符串

一共有 1 個回答:

在我使用ePubcheck 3.0在虛擬ePub中測試它之後,代碼似乎沒有問題。既然你沒有提到ePub是如何創建的,我會通過以下方式排除故障:

  • Creating a new XHTML file and re-doing the contents of the old XHTML file in it to make sure there isn't any issues with the file or if the file is corrupted.
  • Check to make sure your closing tag is proper or the document ends with </html>. This can be tested by opening the XHTML file in a browser such as Chrome and you might get a code error in red at the top.
  • Sometimes empty lines after </html> can cause a validation issue with ePubcheck so make sure to remove them.
  • If this was created in an application like Sublime or BBEdit you can always validate the XHTML.