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

Replace path2project PI with calculating up path from source file path #4253

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jelovirt
Copy link
Member

@jelovirt jelovirt commented Jul 30, 2023

Description

Replace <?path2project?> processing instruction with calculating up path from source file path.

Motivation and Context

The path processing instructions are an old feature and are used only by transtype specific XSLT. The same functionality can be achieved by passing the path of the current document into the XSLT process. Refactoring the path processing instruction out and replacing with XSLT parameters, the code will be more simple and easier to reason.

Generation of <?path2project?> processing instruction can be removed in future PR for the next major release.

How Has This Been Tested?

Existing tests.

Type of Changes

  • New feature (non-breaking change which adds functionality)

Documentation and Compatibility

Requires a longer explanation in the release notes about migration to new code. Migration is only needed if custom plug-ins change how transtype specific XSLT are called from Ant or use the PIs during preprocessing.

@jelovirt jelovirt added priority/medium Medium (or unknown) priority issue enhancement Changes to an existing feature labels Jul 30, 2023
@jelovirt jelovirt force-pushed the feature/refactor-path-processing-instructions branch from 48b5a23 to a1156c4 Compare August 1, 2023 08:54
@jelovirt jelovirt marked this pull request as ready for review August 1, 2023 08:55
@jelovirt jelovirt requested a review from robander August 1, 2023 09:08
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
The PI is not used anywhere.

Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
@jelovirt jelovirt force-pushed the feature/refactor-path-processing-instructions branch from a1156c4 to 966907a Compare August 19, 2023 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changes to an existing feature priority/medium Medium (or unknown) priority issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant