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

XSLT match patterns on pinned maps and arrays #1026

Closed
michaelhkay opened this issue Feb 17, 2024 · 1 comment
Closed

XSLT match patterns on pinned maps and arrays #1026

michaelhkay opened this issue Feb 17, 2024 · 1 comment
Labels
Abandoned PR was rejected, withdrawn, or superseded Enhancement A change or improvement to an existing feature PRG-hard Categorized as "hard" at the Prague f2f, 2024 PRG-optional Categorized as "optional for 4.0" at the Prague f2f, 2024 XSLT An issue related to XSLT

Comments

@michaelhkay
Copy link
Contributor

Given that <xsl:apply-templates select="pin(.)??course?code"/> will select items that are labeled with their position in the containing tree of maps and arrays, it should be possible to match the selected items with a match pattern of the form

match="?course?code"

that operates in a similar way to patterns such as course/code in XML.

Perhaps the pinning of the map should be done automatically by the xsl:apply-templates instruction.

@michaelhkay michaelhkay added XSLT An issue related to XSLT Enhancement A change or improvement to an existing feature labels Feb 17, 2024
@ndw ndw added PRG-hard Categorized as "hard" at the Prague f2f, 2024 PRG-optional Categorized as "optional for 4.0" at the Prague f2f, 2024 labels Jun 4, 2024
@michaelhkay
Copy link
Contributor Author

Superseded by issue #1776

@michaelhkay michaelhkay added the Abandoned PR was rejected, withdrawn, or superseded label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Abandoned PR was rejected, withdrawn, or superseded Enhancement A change or improvement to an existing feature PRG-hard Categorized as "hard" at the Prague f2f, 2024 PRG-optional Categorized as "optional for 4.0" at the Prague f2f, 2024 XSLT An issue related to XSLT
Projects
None yet
Development

No branches or pull requests

2 participants