Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
3

epub validation error

Community Beginner ,
Feb 10, 2024 Feb 10, 2024
I am getting the following error when trying to validate a reflowable epub that I exported from InDesign: ERROR(RSC-012): epub/OEBPS/toc.xhtml(63,94): Fragment identifier is not defined.
 
Nothing I try is getting rid of the error. I've tried rebuilding the TOC in multiple ways. But it is not fixing the issue. 
TOPICS
EPUB
7.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 19, 2024 Sep 19, 2024

Yes. It's a new feature (implemented in v19.2 or v19.5) supporting a form of accessiblity that is not fully cooked yet and is not universally implemented; Kindle simply strips it out, but many other EPUB vendors see the code it adds as a flaw. Don't check it, ever, until and unless you understand the accessibility it enables, need that feature, and the vendors have slowly caught up to the new standards and features.

 

Also stay out of the Accessiblity menu (a submenu of the Metadata export pane)

...
Translate
Contributor ,
Oct 15, 2024 Oct 15, 2024

The issue is very likely in the pagelist. If you check "Page Navigation" on EPUB export, InDesign with put markers where the page breaks occur in the text. There is a minor bug where it sometimes lists a page number twice and then iterates the ID in the second instance: <span epub:type="pagebreak" role="doc-pagebreak" id="page123-1" aria-label=" Page 123. " />. The error will point to the line in toc.xhtml where that occurs and then you can hunt down and delete that erroneous pagebreak. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 18, 2025 Mar 18, 2025
LATEST

I received the same error and renaming my InDesign file so it didn't use German umlaut characters in the file name did the trick. Apparently this resulted in file names that EPUBCheck could resolve.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines