SAA-SDT / eas-schematrons

Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Schematron currently checks if the content in <agencyCode> is compliant with ISO 15511 even if @repositoryEncoding is not set #10

Open kerstarno opened 7 months ago

kerstarno commented 7 months ago

Creator of issue

  1. Kerstin Arnold
  2. EAD team lead, TS-EAS
  3. @kerstarno
  4. kerstin.arnold@archivesportaleurope.net

The issue relates to

Wanted change/feature

fordmadox commented 7 months ago

That was the decision made for the EAC CPF 2.0 release (ditto for the default of ISO 8601, which was also present in EAD3). I will update the 'ead4' branch for this decision, but since it differs from the EAC decision, I'll also add Marie to this ticket for future review.

fordmadox commented 7 months ago

Same for script and country codes, since those lists were always the de-facto defaults, and so, didn't need to be specified.

But for this issue, I'm just updating the repositoryEncoding test.

fordmadox commented 7 months ago

See https://github.com/SAA-SDT/eas-schematrons/pull/13/files

kerstarno commented 7 months ago

Re-tested with the XSD and the RNG (with the "ead4" branch Schematron) and can confirm that the check is now only done when @repositoryEncoding is used/present in <control> and has the value "iso15511".

Will admit that I didn't remember that decision from the EAC-CPF revision anymore. I think, what mainly made me wonder was the fact that the messaged starts with "If the repositoryEncoding is set to ISO 15511...". As long as I haven't used the @repositoryEncoding attribute to start with, that message seems off. The same for @countryCode, @scriptCode, and @scriptOfElement. As long as I don't have the respective @...Encoding attributes added to <control>, the error message can't - to my mind - require the value of these attributes to follow a specific ISO code (or EAS list). The first message to show in that case should - again, to my mind - rather be something like "Please add @...Encoding to <control> and specify the code list that the values of @[name of the attribute in question] are expected to follow."

fordmadox commented 7 months ago

Agreed. I think that all the Schematron messages should be reviewed and updated!!! Most were just added as a quick example.