epubcheck icon indicating copy to clipboard operation
epubcheck copied to clipboard

dublicate "id" in <section>

Open MyDK opened this issue 3 years ago • 1 comments
trafficstars

I noticed this by coincidence: EPUBCheck v.4.6.2 allows dublicate ids in section elements in two different xhtml docs inside my EPUB 3 file. - Should identical ids not be flagged as errors?

MyDK avatar Apr 20 '22 08:04 MyDK

dublicate ids in section elements in two different xhtml docs

That's only a problem when an ID is duplicated in the same file as it breaks the ability to link to the fragments.

Reusing IDs across documents isn't the greatest practice, as you could wind up referencing the wrong file and still have a valid link, but as it's not a common problem I'm not surprised epubcheck doesn't test for it even as a usage message.

mattgarrish avatar Apr 20 '22 11:04 mattgarrish

Thanks Matt. I thought it was a no-go. One could argue, that the authoring software (InDesign) should produce non-identical ids by default ... but as long as file is valid, all is well 😁

MyDK avatar Sep 14 '22 06:09 MyDK