-
Notifications
You must be signed in to change notification settings - Fork 0
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
We currently don't have any special tests for unitDate in the same way we do for the single date elements (date, fromDate, toDate) #7
Comments
Decision: yes, update, as long as "otherDateEncoding" option is not specified. |
Actually, the issue is not about While testing SAA-SDT/eas-schemas#88, I also found that there seems to be some inherent check somewhere in the Schematron which expects ISO 8601 compliant dates (respectively some value at all to start with) for Example:
|
This is what should ideally happen when validating with the Schematron:
|
Right, the current approach was modeled off of EAD3's schematron approach (if I recall correctly), such that the only time the dates were not expected to be ISO-8601 was if and only if the dateEncoding was set to "otherDateEncoding". So, setting dateEncoding = to iso8601 was equivalent as leaving it off, just like setting audience = external was equivalent to leaving that attribute blank. I'll update the new EAD4 Schematron to use the 3 rules as explained above, though. Once that's added to the issue_7 branch, I'll note the commit here. |
Should be ready to test now, in both this branch and the 'ead4' branch. |
Tested the following scenarios:
|
@kerstarno : can you check the 'ead4' branch again? I think that I got most of the issues, but I wasn't able to replicate (or understand) some of the behavior that you noticed, specifically with unitDate. |
Re-tested with the XSD and the RNG (including the "ead4" branch Schematron) and can confirm that this now works as expected. When no When I've got When I've got As a note: |
I've created a schemas issue to follow up on the question raised re date ranges in |
Ideally, these two elements will merge (since structured dates can benefit from textual description, and textual description dates already do not require machine-readable date attributes in EAD), but until then, we should likely not allow such encodings like the following:
<unitDate notAfter="2024whatayear"/>
Simple to address in the Schematron, but it begs the question about why we have the two elements still, since why provide an encoding choice to users to encode an equivalent (but in this case Schematron-valid) statement such as:
<unitDateStructured><date notAfter="2024"/></unitDateStructured>
Allowing both goes against our first schema-design principle, anyway.
The text was updated successfully, but these errors were encountered: