Skip to content
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

Support date, date/time, and time formatting functions #283

Open
6 tasks
david-waltermire opened this issue Dec 9, 2024 · 0 comments
Open
6 tasks

Support date, date/time, and time formatting functions #283

david-waltermire opened this issue Dec 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@david-waltermire
Copy link
Contributor

User Story

As a Metapath author, I need to be able to format date, date/time, and time values.

Goals

Add support for Metapath functions that format date, date/time, and time values:

  • fn:format-dateTime Returns a string containing an xs:dateTime value formatted for display.
  • fn:format-date Returns a string containing an xs:date value formatted for display.
  • fn:format-time Returns a string containing an xs:time value formatted for display.

Dependencies

none

Acceptance Criteria

  • All website and readme documentation affected by the changes in this issue have been updated.
  • A Pull Request (PR) is submitted that fully addresses the goals of this User Story. This issue is referenced in the PR.
  • The CI-CD build process runs without any reported errors on the PR. This can be confirmed by reviewing that all checks have passed in the PR.

Revisions

No response

@david-waltermire david-waltermire added the enhancement New feature or request label Dec 9, 2024
@david-waltermire david-waltermire added this to the v2.2.0 milestone Dec 9, 2024
@david-waltermire david-waltermire self-assigned this Dec 9, 2024
@david-waltermire david-waltermire moved this from To Triage to Ready in Spec and Tooling Work Board Dec 9, 2024
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 22, 2024
There appear to be some issues parsing, seemingly at the ANLTRv4 grammar
layer, with the following kinds of function expressions that are in the
spec for example test cases for this function in the XPath 3.1 spec.

`fn:function-arity(fn:substring#2)`
`let $initial := fn:substring(?, 1, 1) return fn:function-arity($initial) returns 1`

More investigation is needed and perhaps separate bugs must be filed.
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 22, 2024
There appear to be some issues parsing, seemingly at the ANLTRv4 grammar
layer, with the following kinds of function expressions that are in the
spec for example test cases for this function in the XPath 3.1 spec.

`fn:function-arity(fn:substring#2)`
`let $initial := fn:substring(?, 1, 1) return fn:function-arity($initial) returns 1`

More investigation is needed and perhaps separate bugs must be filed.
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 23, 2024
In order to implement functions that look up names, arity, and other
details for Metapath functions, we must implement processing to support
named function references found from the tokenizer and lexer.
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 23, 2024
In order to implement functions that look up names, arity, and other
details for Metapath functions, we must implement processing to support
named function references found from the tokenizer and lexer.
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 23, 2024
There appear to be some issues parsing, seemingly at the ANLTRv4 grammar
layer, with the following kinds of function expressions that are in the
spec for example test cases for this function in the XPath 3.1 spec.

`fn:function-arity(fn:substring#2)`
`let $initial := fn:substring(?, 1, 1) return fn:function-arity($initial) returns 1`

More investigation is needed and perhaps separate bugs must be filed.
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 24, 2024
In order to implement functions that look up names, arity, and other
details for Metapath functions, we must implement processing to support
named function references found from the tokenizer and lexer.
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 24, 2024
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 24, 2024
david-waltermire pushed a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 29, 2024
In order to implement functions that look up names, arity, and other
details for Metapath functions, we must implement processing to support
named function references found from the tokenizer and lexer.
david-waltermire pushed a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 29, 2024
david-waltermire pushed a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 29, 2024
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 29, 2024
david-waltermire added a commit that referenced this issue Dec 29, 2024
* Implement support for named function refs for #283. In order to implement functions that look up names, arity, and other details for Metapath functions, we must implement processing to support named function references found from the tokenizer and lexer.

* Formatting and rename vars appropriately for #283
* Cleaned up compile and PMD errors and warnings.
* Refactored named function reference unit tests to separate found and not found tests.

---------

Co-authored-by: David Waltermire <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready
Development

No branches or pull requests

2 participants