Method: IsoDoc::Convert#extract_preprocess_xslt
- Defined in:
- lib/isodoc/convert.rb
#extract_preprocess_xslt(docxml) ⇒ Object
134 135 136 137 138 139 140 141 |
# File 'lib/isodoc/convert.rb', line 134 def extract_preprocess_xslt(docxml) docxml.xpath(ns("//metanorma-extension/render/preprocess-xslt")) .each_with_object([]) do |x, m| formats = x["format"]&.split(",") || [] !formats.empty? && !formats.include?(@format.to_s) and next m << x.children.to_xml end end |