-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
As discovered through metaschema-framework/metaschema-java#375, it turns out that fn:year-from-dateTime() per specification on XPath 3.1 Functions (and underlying XML Schema XSD 1.0 and 1.1 data type specification), negative date years are permissible in the format -YYYY for <=-1 for BCE years.
Who is the bug affecting
Anyone developing Metaschema-aware tools and data with negative date and more complex data from historical periods.
How do we replicate this issue
See test failures and code workarounds from porting the official XPath 3.1 functions test suite to the metaschema-java test harness in metaschema-framework/metaschema-java@39fbfe5 (link to CI/CD failure in GitHub Actions).
Expected behavior (i.e. solution)
Negative dates are permitted.
Other comments
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Backlog