Highlighted

Fixed Layout ePub Exported by InDesign Fails Validation in ePub Checker v4.1.1

New Here ,
Feb 21, 2019

Copy link to clipboard

Copied

I'm using InDesign to make Fixed Layout ePubs. I just upgraded ePub Checker to v4.1.1 and now all my ePubs that had no errors before with v4.0.2 now generate an error. Here are screen shots of the v4.0.2 and v4.1.1 check results:

no error v402.pngerror v411.png

The error returned is in toc.xhtml: Error while parsing file: element 'ol' incomplete; missing required element 'li'. Here's a screenshot of the toc.xhtml:

Screen Shot 2019-02-18 at 9.49.37 AM.png

The error is at line 9. There needs to be an entry between <ol> and </ol>. Leaving this empty is apparently no longer valid using the 4.1.1 ePub Checker library, but used to be OK with the 4.0.2 library. I contacted the developer of ePub Checker and he said:

This comes from the underlaying validation engine of the official EPUBCheck library.  There has been a minor update as you can see when having a look at the version numbers (4.1.1 vs. 4.0.2).

Core developers made an update to the TOC schema with PR #763 (https://github.com/w3c/epubcheck/pull/763😞

> fixes nav doc validation to be more faithful to the spec

> * require at least one li child for ol

So this is be intention and it seems you have some empty <ol> elements with no children in your toc.xhtml which is not valid anymore.

You have to fix these... so InDesign is not producing ePubs that conform to the current standard. The problem is, that InDesign is exporting an empty TOC with an empty <ol> element if you do not set toc titles properly before exporting.

Note that I'm using the most current version of InDesign (2019 v 10.0.1), and that the ePubs I'm exporting out of InDesign are Fixed Layout, so setting toc titles is not an option in the export dialog. So to fix this I would have to add an li child between <ol> and </ol>.

So starting at line 8 it would read

                   <ol>

                           <li>  ????????  </li>

                   </ol>

Not being really familiar with html and relying on InDesign to produce my ePubs, I don't know what to put here. What should I put here as a work-around to make the ePub valid? Note that the ePubs I now have that validate correctly against the old standard still work fine as far as being able to be read. So the only change is to make the ePub valid – there is really no change in the way the ePub is read or displayed on various devices. Or, the ultimate question: Do I really need to worry about this? Looks like the ePub Checker developers just made a tweak in the validation procedure to conform more tightly with the specs, but will the minor error, which apparently doesn't affect how the ePub is read, cause iBooks and others to reject the ePub? Bottom line, however, is that Fixed Layout ePubs produced by the current version of InDesign apparently do not conform to the current standard.

Adobe Community Professional
Correct answer by Steve Werner | Adobe Community Professional

Moving to InDesign EPUB forum

TOPICS
EPUB

Views

2.1K

Likes

Translate

Translate

Report

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

Fixed Layout ePub Exported by InDesign Fails Validation in ePub Checker v4.1.1

New Here ,
Feb 21, 2019

Copy link to clipboard

Copied

I'm using InDesign to make Fixed Layout ePubs. I just upgraded ePub Checker to v4.1.1 and now all my ePubs that had no errors before with v4.0.2 now generate an error. Here are screen shots of the v4.0.2 and v4.1.1 check results:

no error v402.pngerror v411.png

The error returned is in toc.xhtml: Error while parsing file: element 'ol' incomplete; missing required element 'li'. Here's a screenshot of the toc.xhtml:

Screen Shot 2019-02-18 at 9.49.37 AM.png

The error is at line 9. There needs to be an entry between <ol> and </ol>. Leaving this empty is apparently no longer valid using the 4.1.1 ePub Checker library, but used to be OK with the 4.0.2 library. I contacted the developer of ePub Checker and he said:

This comes from the underlaying validation engine of the official EPUBCheck library.  There has been a minor update as you can see when having a look at the version numbers (4.1.1 vs. 4.0.2).

Core developers made an update to the TOC schema with PR #763 (https://github.com/w3c/epubcheck/pull/763😞

> fixes nav doc validation to be more faithful to the spec

> * require at least one li child for ol

So this is be intention and it seems you have some empty <ol> elements with no children in your toc.xhtml which is not valid anymore.

You have to fix these... so InDesign is not producing ePubs that conform to the current standard. The problem is, that InDesign is exporting an empty TOC with an empty <ol> element if you do not set toc titles properly before exporting.

Note that I'm using the most current version of InDesign (2019 v 10.0.1), and that the ePubs I'm exporting out of InDesign are Fixed Layout, so setting toc titles is not an option in the export dialog. So to fix this I would have to add an li child between <ol> and </ol>.

So starting at line 8 it would read

                   <ol>

                           <li>  ????????  </li>

                   </ol>

Not being really familiar with html and relying on InDesign to produce my ePubs, I don't know what to put here. What should I put here as a work-around to make the ePub valid? Note that the ePubs I now have that validate correctly against the old standard still work fine as far as being able to be read. So the only change is to make the ePub valid – there is really no change in the way the ePub is read or displayed on various devices. Or, the ultimate question: Do I really need to worry about this? Looks like the ePub Checker developers just made a tweak in the validation procedure to conform more tightly with the specs, but will the minor error, which apparently doesn't affect how the ePub is read, cause iBooks and others to reject the ePub? Bottom line, however, is that Fixed Layout ePubs produced by the current version of InDesign apparently do not conform to the current standard.

Adobe Community Professional
Correct answer by Steve Werner | Adobe Community Professional

Moving to InDesign EPUB forum

TOPICS
EPUB

Views

2.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 21, 2019 0
Adobe Community Professional ,
Feb 21, 2019

Copy link to clipboard

Copied

Moving to InDesign EPUB forum

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 21, 2019 0
New Here ,
Feb 22, 2019

Copy link to clipboard

Copied

Problem solved! When exporting the Fixed Layout ePub, select "File Name" when setting the Navigation TOC. I had mine set on "None" which was OK when validating the file with the old version of ePub Checker (v4.0.2), but generates the above error when using v4.1.1.

Screen Shot 2019-02-22 at 4.39.17 PM.png@

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 22, 2019 5
New Here ,
Aug 08, 2020

Copy link to clipboard

Copied

Thank you thank you - you've saved me from humdreds of hours of head scratching to solve this issue...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 08, 2020 1
New Here ,
Aug 27, 2020

Copy link to clipboard

Copied

I had the excat same issue, with my fixed layout. and changing the TOC navogation to file name fixed my issue!

Gosh i love to see a valid epub. Thanks so much.  

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 27, 2020 0