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

Attempt to clarify p:import-functions #1111

Merged
merged 2 commits into from
Aug 29, 2024
Merged

Attempt to clarify p:import-functions #1111

merged 2 commits into from
Aug 29, 2024

Conversation

ndw
Copy link
Contributor

@ndw ndw commented Aug 28, 2024

Fix #1110

@ndw ndw requested a review from a team as a code owner August 28, 2024 17:18
@xml-project xml-project self-requested a review August 29, 2024 05:55
Copy link
Member

@xml-project xml-project left a comment

Choose a reason for hiding this comment

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

I am sorry to disagree with one aspect, but I think that functions imported in a p:library should not be automatically visible in a pipeline importing that library. As far as I can see, this break the current scoping rules for import.
If I want to use a function in a step, a p:import-function should be necessary to avoid scoping problems in the importing step.

@ndw
Copy link
Contributor Author

ndw commented Aug 29, 2024

Yes. I think you're absolutely right. I did note in the issue that I wasn't sure what the right answer was. Thanks for telling me :-)

@xml-project
Copy link
Member

@ndw

I did note in the issue that I wasn't sure what the right answer was.

Sorry, I missed that question.

@ndw ndw merged commit 45de35b into xproc:master Aug 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify p:import-functions
3 participants