Quote:
|
Originally Posted by 413Michele
Adding ops:default still gives RSC-005
|
You are right, this is a wrong error in epubveri. JSWolf is right too: ops:switch belongs to EPUB 2. OPS 2.0.1 section 2.6.3 defines it. A switch holds one or more ops:case elements and then one ops:default, and the document is valid if it would still be valid with each switch replaced by what its ops:default contains. epubveri had no ops:switch for EPUB 2 at all, so it rejected every one as "not allowed here", including a correct one like yours.
This is fixed in the code for the next release. A switch with an ops:default no longer draws that RSC-005. One without an ops:default will get the same message as in epubcheck: the switch is incomplete because its default element is missing. That also answers your first post: the old message was wrong about what was wrong.
One case is still not covered: a switch directly inside a list or a table, where only list items or rows may stand. If one of your books has that, please tell me and I will handle it as well.