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

Allow sequence constructor in extension instructions that are implemented with named templates #1251

Open
kosek opened this issue Jun 4, 2024 · 1 comment
Labels
Enhancement A change or improvement to an existing feature PRG-easy Categorized as "easy" 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

@kosek
Copy link

kosek commented Jun 4, 2024

This is follow up of #168

I would like to extend https://qt4cg.org/specifications/xslt-40/Overview.html#invoking-templates-with-extension-instructions and allow sequence constructor inside extension instruction. I'm using such instructions in my code and it would be nice to be able to rewrite them to pure XSLT 4.0 code. Sequence constructor could be mapped to predefined parameter name. E.g.

<t:_>Hello world.</t:_>

Would be translated to

<xsl:call-template name="t:_">
  <xsl:with-param name="xsl:input">Hello world.</xsl:with-param>
</xsl:call-template>
@ChristianGruen ChristianGruen added XSLT An issue related to XSLT Enhancement A change or improvement to an existing feature labels Jun 4, 2024
@ndw ndw added PRG-easy Categorized as "easy" at the Prague f2f, 2024 PRG-optional Categorized as "optional for 4.0" at the Prague f2f, 2024 labels Jun 5, 2024
@michaelhkay
Copy link
Contributor

I'm inclined to follow the convention that the contained sequence constructor has the same effect as a select attribute. So if the template defines a select attribute, and its type is not boolean or string, then it also allows a contained sequence constructor as an alternative to the select attribute.

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 PRG-easy Categorized as "easy" 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

4 participants