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

Skip transformation if source file doesn't exist #4435

Merged
merged 1 commit into from Mar 15, 2024

Conversation

jelovirt
Copy link
Member

Description

In XSLT and SAX filter transformations early exit if the source file doesn't exist.

Motivation and Context

Fixes #4383

DITA-OT 4.2 updated Saxon version and Saxon now throws and exception when EmptySource is used as source for XSLT transtormation. To prevent this exception, we add a guard clause to check whether source exists before running XSLT transformation. In addition to preventing the exception, this is also an optimization to prevent work that we know will not succeed.

How Has This Been Tested?

Existing tests.

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)

Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
@jelovirt jelovirt merged commit c305caa into hotfix/4.2.2 Mar 15, 2024
4 checks passed
@jelovirt jelovirt deleted the feature/early-exits-when-source-missing branch March 15, 2024 10:02
@jelovirt jelovirt added this to the 4.2.2 milestone Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant