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

XSLT preprocessing memory leak: https://github.com/metanorma/isodoc/i… #547

Merged
merged 2 commits into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lib/isodoc/convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ def convert_init(file, input_filename, debug)
end

def preprocess_xslt(docxml)
extract_preprocess_xslt(docxml).each do |x|
sheets = extract_preprocess_xslt(docxml)
warn "Preprocessing XSLT: #{@format}..."
sheets.each do |x|
docxml = Nokogiri::XSLT(x).transform(docxml)
end
docxml
Expand All @@ -131,8 +133,9 @@ def convert_i18n_init(docxml)
convert_i18n_init1(docxml)
i18n_init(@lang, @script, @locale)
@reqt_models = requirements_processor
.new({ default: "default", lang: @lang, script: @script, locale: @locale,
labels: @i18n.get, modspecidentifierbase: @modspecidentifierbase })
.new({ default: "default", lang: @lang, script: @script,
locale: @locale, labels: @i18n.get,
modspecidentifierbase: @modspecidentifierbase })
end

def convert_i18n_init1(docxml)
Expand Down