-
Notifications
You must be signed in to change notification settings - Fork 31
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: name temporary variables with namespace #797
Conversation
Thanks, @AirQuick . I've started looking at this. I need a little more time that's not at the end of a long day. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code changes look good. I reviewed the diffs and also looked at compiler output from your test and some ad hoc variations on it.
The Compilation wiki might need some updates. No hurry. If you're too busy with other pull requests and you'd like me to update the wiki, let me know.
Thanks for the reivew, @galtm
I forgot about it! although we have a reminder (#505). A problem is that there is no |
I forgot about #505 . I'll assign it to myself. Do you think it's ready to be worked on anytime? The description says (from over a year ago), "At some point in the future when the outstanding pull requests are resolved". |
Soon I'm going to open a small refactoring pull request to get ready for dynamic invocation. And I was going to ask you to review it. It's small, but it may change something in the compiled stylesheet. I'll let you know. Another idea is that the compiler itself should possibly write comments like |
OK, I will wait for (at least) your refactoring pull request before working on the compilation wiki. I can review that PR when it's ready. I tend to lean toward seeing code comments as useful rather than clutter, so I like your idea about making the compiler insert some of the comments that are currently added manually to the compilation wiki. |
Opened #807. Fortunately, I believe nothing has changed in the compiled stylesheet. |
Fixes #777
Before fixing the problem, the temporary variable names were
[final name]-doc
and[final name]-doc-uri
. They can conflict with user-defined variable names.This pull request changes the naming convention:
[private namespace prefix]:[context element local name]-[context element id]-doc
and...-uri
.[private namespace prefix]
islocal
(XQuery) orimpl
(XSLT).