Method: IsoDoc::PresentationXMLConvert#preface_move
- Defined in:
- lib/isodoc/presentation_function/section.rb
#preface_move(clauses, after, _doc) ⇒ Object
131 132 133 134 135 136 137 138 139 140 |
# File 'lib/isodoc/presentation_function/section.rb', line 131 def preface_move(clauses, after, _doc) clauses.empty? and return preface = clauses.first.parent clauses.each do |clause| float = preceding_floats(clause) xpath = after.map { |n| "./self::xmlns:#{n}" }.join(" | ") xpath.empty? and xpath = "./self::*[not(following-sibling::*)]" preface_move1(clause, preface, float, nil, xpath) end end |