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

fix: declare function-param and template-param using internal name #1574

Merged
merged 5 commits into from
Dec 7, 2021

Conversation

AirQuick
Copy link
Member

Fixes #1564

This pull request fixes a bug where //(x:call | x:context)/x:param[@name] can be referenced inadvertently outside its scope ("Test 3" of #1564 (comment)).

Before fixing the bug, //(x:call | x:context)/x:param[@name] was transformed into xsl:variable using its @name.
After this fix, it is transformed using an internal name. Hence the test author is no longer able to refer to the declared variable. I guess nobody is affected by that. The tests for that "feature" are removed by a commit 4d7e210.

Copy link
Member

@galtm galtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Besides looking at the code changes, I also compared compiled tests before and after this change for a few sample tests.

@AirQuick
Copy link
Member Author

AirQuick commented Dec 7, 2021

Thanks @galtm
I'm merging this.

@AirQuick AirQuick enabled auto-merge (squash) December 7, 2021 13:15
@AirQuick AirQuick merged commit 3a36844 into xspec:master Dec 7, 2021
@AirQuick AirQuick deleted the fix_issue-1564 branch December 7, 2021 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x:param overriding global xsl:param not working as documented
2 participants