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

xsl:apply-templates (without select) should allow inline content #1631

Closed
innovimax opened this issue Dec 3, 2024 · 3 comments
Closed

xsl:apply-templates (without select) should allow inline content #1631

innovimax opened this issue Dec 3, 2024 · 3 comments
Labels
Discussion A discussion on a general topic. Reviewed-close Triage suggets closing this issue. XSLT An issue related to XSLT

Comments

@innovimax
Copy link
Contributor

The specification of XSLT 3.0 on the matter is pretty loose and seems to allow the fact that xsl:apply-templates without select attribute should contains the elements to process inline.

It seems like a rather nice feature and may allow to do trick that are quite difficult to do right now

(copy of w3c/qtspecs#31 )

@michaelhkay
Copy link
Contributor

michaelhkay commented Dec 3, 2024

I assume you're proposing that

<xsl:apply-templates>
   <x/>
</xsl:apply-templates>

would be equivalent to

<xsl:variable name="temp">
  <x/>
</xsl:variable>
<xsl:apply-templates select="$temp"/>

This might be a minor convenience feature, but I can't see that the alternative using a variable is "quite difficult".

There's another more general approach which I have sketched out, where you do

<xsl:pipeline>
   <x/>
   <xsl:apply-templates/>
</xsl:pipeline>

The idea of xsl:pipeline is that the result of each instruction child provides input to the next instruction in the sequence.

@ChristianGruen ChristianGruen added XSLT An issue related to XSLT Discussion A discussion on a general topic. labels Jan 9, 2025
@ndw ndw added the Reviewed-close Triage suggets closing this issue. label Feb 11, 2025
@ndw
Copy link
Contributor

ndw commented Feb 11, 2025

We'll close this next week without any further action unless someone raises an objection.

@ndw
Copy link
Contributor

ndw commented Feb 18, 2025

The CG agreed to merge close this issue without further action at meeting 110.

@ndw ndw closed this as completed Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion A discussion on a general topic. Reviewed-close Triage suggets closing this issue. XSLT An issue related to XSLT
Projects
None yet
Development

No branches or pull requests

4 participants