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

inline image in figcaption does not validate #543

Open
oscarlcarlsson opened this issue Jan 16, 2023 · 1 comment
Open

inline image in figcaption does not validate #543

oscarlcarlsson opened this issue Jan 16, 2023 · 1 comment

Comments

@oscarlcarlsson
Copy link
Collaborator

Inline images needs to be allowed in figcaption. currently the rule seems to counts all img children on any level. see error [nordic253b].
here is a link to what we suspect causes the error:
https://github.com/nlbdev/nordic-epub3-dtbook-migrator/blob/master/src/main/resources/xml/schema/2020-1/nordic2020-1.sch#L627

should (.//html:img) be (./html:img)?

example file and error report will be added in the trello.

@josteinaj
Copy link
Member

I suppose the count(.//html:img) = 1 test could be removed. And only keep the count(html:img) = 1 test. The description should then probably be changed to [nordic253b] There must be exactly one img as a direct child of the figure element..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants