Edirom / edirom-edition-schema

The schema files for different versions of the edition.xml file used throughout several Edirom versions
1 stars 1 forks source link

require `edition/languages/language/@xml:lang` not to be empty string #8

Open bwbohl opened 2 years ago

bwbohl commented 2 years ago

eventually we could just add all iso690 codes as allowed values

bwbohl commented 2 years ago

as discovered by @riedde in Bazga merge Edirom/Edirom-Online#172

bwbohl commented 2 years ago

actually the definition of @xml:langallows BCP47 language tags (see https://www.w3.org/International/articles/language-tags/), of which iso 639-1 is just a subset. A description of BCP47 can be found at https://en.wikipedia.org/wiki/IETF_language_tag

bwbohl commented 2 years ago

best source is the IANA registry: https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry

bwbohl commented 2 years ago

to avoid providing a modified xml.xsd a schematron file could do the job