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

1094 Enhanced lookup expressions #1125

Merged

Conversation

michaelhkay
Copy link
Contributor

@michaelhkay michaelhkay commented Mar 27, 2024

Fix #1094

Lookup expressions (both deep and shallow) are enhanced in two ways:

(a) the syntax is extended to provide options that avoid flattening the result. For example $V?pairs::K delivers the result as a sequence of key-value pairs.

(b) a new KeySpecifier format is provided to filter the results by type. For example $V??type(record(first, last)) selects all items in the recursive content that are of type record(first, last). This replaces the previous syntax $V??*::record(first, last) which caused ambiguities with occurrence indicators.

@michaelhkay michaelhkay added XPath An issue related to XPath Enhancement A change or improvement to an existing feature Tests Needed Tests need to be written or merged labels Mar 27, 2024
@michaelhkay michaelhkay mentioned this pull request Apr 4, 2024
@ndw
Copy link
Contributor

ndw commented Apr 23, 2024

The CG agreed to merge this issue at meeting 074

@ndw ndw added the Blocked PR is blocked (has merge conflicts, doesn't format, etc.) label Apr 23, 2024
@michaelhkay michaelhkay force-pushed the 1094-enhanced-lookup-expressions branch from 2ba18de to 0ddaa64 Compare April 23, 2024 20:25
@michaelhkay michaelhkay removed the Blocked PR is blocked (has merge conflicts, doesn't format, etc.) label Apr 23, 2024
@michaelhkay michaelhkay merged commit c583d83 into qt4cg:master Apr 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A change or improvement to an existing feature Tests Needed Tests need to be written or merged XPath An issue related to XPath
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Axis steps in lookup expressions
2 participants