Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nav elements containing multiple images generating FATAL(RSC-016) #1476

Closed
nekennedy opened this issue Jan 17, 2023 · 2 comments · Fixed by #1500
Closed

Nav elements containing multiple images generating FATAL(RSC-016) #1476

nekennedy opened this issue Jan 17, 2023 · 2 comments · Fixed by #1500
Assignees
Labels
priority: high To be processed and published in the next release status: has PR The issue is being processed in a pull request type: false-positive This issue is about valid content being incorrectly rejected
Milestone

Comments

@nekennedy
Copy link

I'm seeing the below message in epubcheck 5.0.0 (run via terminal, Mac OS Monterey) when there are multiple images in a nav entry. The file has no errors in epubcheck 4.2.6.

As far as impact goes, it's unusual to have images in a nav, it's even more unusual to have 2. This affects 2 out of the +6000 recent files I checked. It's also unusual to have the message duplicated, we don't usually see fatal errors so not sure if that's normal.

Validating using EPUB version 3.3 rules.
A sequence of more than one item is not allowed as the second argument of concat() (@alt="", @alt="") . Found while atomizing the first argument of fn:concat()
FATAL(RSC-016): [file path on my computer]/OEBPS/nav.xhtml(-1,-1): Fatal Error while parsing file: A sequence of more than one item is not allowed as the second argument of concat() (@alt="", @alt="") . Found while atomizing the first argument of fn:concat()

Check finished with errors
Messages: 1 fatal / 0 errors / 0 warnings / 0 infos

EPUBCheck completed
<nav epub:type="toc" role="doc-toc" aria-labelledby="toc">
	<h1 id="toc">Contents</h1>
	<ol>
		<li><a href="xhtml/title_page.xhtml">Some text <img class="inline1" width="9" height="13" src="images/an_image.png" alt="" /> some text <img class="inline1" width="9" height="13" src="images/a_second_image.png" alt="" /></a></li>
	</ol>
</nav>
@rdeltour
Copy link
Member

This definitely looks like a false positive; at first sight I see nothing non-conforming in the markup. Thanks for the report @nekennedy!

Im any case, it should not cause a fatal error.

@rdeltour rdeltour self-assigned this Jan 19, 2023
@rdeltour rdeltour added status: accepted Ready to be further processed priority: high To be processed and published in the next release type: false-positive This issue is about valid content being incorrectly rejected labels Jan 19, 2023
@rdeltour rdeltour added this to the Next maintenance release milestone Jan 19, 2023
@rdeltour
Copy link
Member

From the error message, it appears to be caused by an XPath expression in one of the schematron schema, probably the nav doc schema.

@rdeltour rdeltour linked a pull request Apr 28, 2023 that will close this issue
@rdeltour rdeltour added status: has PR The issue is being processed in a pull request and removed status: accepted Ready to be further processed labels Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high To be processed and published in the next release status: has PR The issue is being processed in a pull request type: false-positive This issue is about valid content being incorrectly rejected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants