On Sun, Feb 23, 2025 at 9:57 AM Chet Murthy <[email protected]> wrote:

>
> It remains that "epubcheck" croaks big time, but I'll look into finding a
> newer version of that, and maybe that'll work.  Or maybe there's a
> different epub-checker.
>
>
I was using epubcheck 4.2.6, which croaked.  I just downloaded the latest
release (v5.2.1) and it passed the epub with only errors such as these:

ERROR(RSC-005): main.epub/OEBPS/mainch1.html(44,61): Error while parsing
file: value of attribute "id" is invalid; must be an XML name without colons

I went back to your sample, and unmodified, ran the generated EPUB thru
epubcheck, getting the same error (and checking the generated HTML, it's of
the same sort):

Error message:

ERROR(RSC-005): sample.epub/OEBPS/samplech1.html(13,59): Error while
parsing file: value of attribute "id" is invalid; must be an XML name
without colons

In generated HTML:

   <hr class='figure' /><div class='figure' id='-caption'>

And by messing with the text, I can verify that it comes from the "Caption"
on the figure in your sample.  I don't know if this is problematic or not,
but I figured I should report it.

Again, thank you so much for your help!
--chet--

Reply via email to