nlbdev / nordic-epub3-dtbook-migrator

Tools for converting between a strict subset of DTBook and EPUB3.
http://nlbdev.github.io/nordic-epub3-dtbook-migrator/
GNU Lesser General Public License v2.1
8 stars 7 forks source link

Allow unordered metadata #553

Closed kalaspuffar closed 1 year ago

kalaspuffar commented 1 year ago

Hi @josteinaj

Trying to solve https://github.com/nlbdev/nordic-epub3-dtbook-migrator/issues/536

This is a small change moving the uniqueness check of the metadata fields to Schematron.

I created a new rule called nordic_1. Maybe this number is already used, then we will change it, but validating unique fields in any order is not allowed in RelaxNG.

I did a quick check if I could add the Schematron rules as an extension of the RelaxNG rules. Seemed not to work so to be careful I created a new rule.