Skip to content

2004 Add xsl:select instruction - #2008

Merged
michaelhkay merged 4 commits into
qt4cg:masterfrom
michaelhkay:2004-xsl-xpath-instruction
May 20, 2025
Merged

2004 Add xsl:select instruction#2008
michaelhkay merged 4 commits into
qt4cg:masterfrom
michaelhkay:2004-xsl-xpath-instruction

Conversation

@michaelhkay

Copy link
Copy Markdown
Contributor

Fix #2004

@michaelhkay michaelhkay added XSLT An issue related to XSLT Feature A change that introduces a new feature Tests Needed Tests need to be written or merged labels May 16, 2025
@michaelhkay
michaelhkay force-pushed the 2004-xsl-xpath-instruction branch from 27cf453 to 302131c Compare May 17, 2025 14:10
@Arithmeticus

Copy link
Copy Markdown
Contributor

To showcase the utility of the instruction, I recommend including a brief example with CDATA, e.g.,

<![CDATA[
    let $anchor := following-sibling::anchor[1]
    return
         following-sibling::*[. << $anchor]
    (: Get all elements after the context that precede the anchor. :)
]]>

The operators << and >> are easily missed, hence both the example and its internal explanation.

@ndw

ndw commented May 20, 2025

Copy link
Copy Markdown
Contributor

At meeting 122, the CG agreed to merge this PR.

@michaelhkay michaelhkay changed the title 2004 Add xsl:xpath instruction 2004 Add xsl:select instruction May 20, 2025
@michaelhkay
michaelhkay merged commit 316ee41 into qt4cg:master May 20, 2025
@michaelhkay
michaelhkay deleted the 2004-xsl-xpath-instruction branch May 20, 2025 18:08
@michaelhkay michaelhkay added In Saxon 13 The feature is implemented in the Saxon 13 development branch Tests Added Tests have been added to the test suites Completed PR has been applied, tests written and tagged, no further action needed and removed Tests Needed Tests need to be written or merged labels May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Completed PR has been applied, tests written and tagged, no further action needed Feature A change that introduces a new feature In Saxon 13 The feature is implemented in the Saxon 13 development branch Tests Added Tests have been added to the test suites XSLT An issue related to XSLT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xsl:xpath instruction

3 participants