-
Notifications
You must be signed in to change notification settings - Fork 15
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 Extension Instructions invoking Named Templates #168
Comments
👍 👍 👍 |
See also issue #92 which proposes a modification to the propsed spec. |
I would like to extend this proposal 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.
Would be translated to
|
What if anything would prevent an application of the same convenience to functions as well? How likely is it that a writer or reader might confuse an extension instruction with a result tree element or vice versa? Is there a way to mitigate the potential confusion? Probably not, other than inculcating a habit of not using a namespace for both functionality and output. |
Answered my own second question, of course less than a minute after sending, namely, the guardrail of extension instructions. |
Jirka will raise his idea for an extension as a separate issue. |
The CG agreed to close this issue without further action at meeting 081 |
For clarification: the issue was to seek WG confirmation of the status quo text, which is now approved. Note that there is no PR. |
This feature is already present in the draft specification; the issue is being raised to seek WG endorsement of the change.
See section 10.1.3 of the draft.
The change is self contained with no dependencies. It adds no new functionality, merely syntactic convenience.
The text was updated successfully, but these errors were encountered: