Closed martinpub closed 2 years ago
Yes, that rule should prohibit this. I don't see any obvious problem with the schematron, or the preprocessing XSLT, but this seems like a bug, yes.
As a first step, it might be a good idea to reproduce the bug by adding a test here: https://github.com/nlbdev/nordic-epub3-dtbook-migrator/blob/0207bb756f7a3870645e35dd2e98abf838b1ff45/src/test/xprocspec/2020-1/epub3-validate.step.xprocspec
Thank you very much for confirming and for the hints @josteinaj!
This was fixed in #516
In a book, we have the following in the content document V000473-005-toc.xhtml:
In the page list of the navigation document, a mistake made the same link appear twice, so that V000473-005-toc.xhtml#page-viii was never referenced, and V000473-005-toc.xhtml#page-vii was referenced twice:
As I understand it, the rule "All pagebreaks in the book must be referenced from the navigation document" should prohibit this, but the book passed validation.
There is no reference to V000473-005-toc.xhtml#page-viii in nav.xhtml. The rule seems to be based on the ID, which is correct. I think this is a bug. Any ideas?
Ping @kalaspuffar, is this something you could have a look at?