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

256: Context for default function parameter expressions #512

Merged
merged 4 commits into from
Jun 19, 2023

Conversation

michaelhkay
Copy link
Contributor

This is a renewed attempt to tackle issue 256, which concerns how to define the static and dynamic context for default value expressions for optional function parameters in XQuery and XSLT. The resolution is to define the static and dynamic context for these expressions in detail.

To make this work, some refinement of the static and dynamic context definitions is needed:

  • default collation is moved from the static context to the dynamic context, with a note that it is always known statically except in the case when defining the default for a function parameter.
  • static base URI (in the static context) and executable base URI (in the dynamic context) are now formally separated; previously we fudged this by saying they could be different, but without recognizing separate context components
  • the base URI for resolving relative collation URIs is now implementation defined. This allows implementors to use either the compile-time or run-time base URI, or some other URI defined using a processor API.

@ndw
Copy link
Contributor

ndw commented Jun 19, 2023

This PR was accepted at meeting 037.

@ndw ndw merged commit 7e752e2 into qt4cg:master Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants