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

feat: new requirements of package link 'media-type' attribute #1423

Merged
merged 1 commit into from Dec 6, 2022

Conversation

rdeltour
Copy link
Member

@rdeltour rdeltour commented Dec 5, 2022

This commit implements the new requirements of the media-type attribute of the package document link element.

  • new OPF-093 error is reported when the media-type attribute is missing on linked resources located inside the EPUB container
  • new OPF-094 error is reported when the media-type attribute is missing on a link where the rel keyword requires it (this was previously checked with Schematron)
  • new OPF-095 error is reported when the media type of a "voicing" linked resource is not an audio type (this was previously checked with Schematron)

These new checks are implemented in Java, and the old schematron logic is removed.

Fixes #1307

This commit implements the new requirements of the `media-type` attribute
of the package document `link` element.

- new `OPF-093` error is reported when the `media-type` attribute is
  missing on linked resources located inside the EPUB container
- new `OPF-094` error is reported when the `media-type` attribute is
  missing on a link where the `rel` keyword  requires it (this was
  previously checked with Schematron)
- new `OPF-095` error is reported when the media type of a "voicing"
  linked resource is not an audio type (this was previously checked with
  Schematron)

These new checks are implemented in Java, and the old schematron logic
is removed.

Fixes #1307
@rdeltour rdeltour added this to the v5.0.0-beta milestone Dec 5, 2022
@rdeltour rdeltour self-assigned this Dec 5, 2022
Base automatically changed from fix/default-vocab-prefix-error to release/v5.0.0 December 6, 2022 14:41
@rdeltour rdeltour merged commit 3199b81 into release/v5.0.0 Dec 6, 2022
@rdeltour rdeltour deleted the feat/package-link-media-type branch December 6, 2022 14:41
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

Successfully merging this pull request may close these issues.

None yet

2 participants