Method: IsoDoc::PresentationXMLConvert#move_norm_ref_to_sections_insert_pt
- Defined in:
- lib/isodoc/presentation_function/refs.rb
#move_norm_ref_to_sections_insert_pt(docxml) ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/isodoc/presentation_function/refs.rb', line 39 def move_norm_ref_to_sections_insert_pt(docxml) s = docxml.at(ns("//sections")) and return s s = docxml.at(ns("//preface")) and return s.after("<sections/>").next_element docxml.at(ns("//annex | //bibliography"))&.before("<sections/>") &.previous_element end |