Method: IsoDoc::PresentationXMLConvert#preface_rearrange

Defined in:
lib/isodoc/presentation_function/section.rb

#preface_rearrange(doc) ⇒ Object



120
121
122
123
124
125
126
127
128
129
# File 'lib/isodoc/presentation_function/section.rb', line 120

def preface_rearrange(doc)
  preface_move(doc.xpath(ns("//preface/abstract")),
               %w(foreword introduction clause acknowledgements), doc)
  preface_move(doc.xpath(ns("//preface/foreword")),
               %w(introduction clause acknowledgements), doc)
  preface_move(doc.xpath(ns("//preface/introduction")),
               %w(clause acknowledgements), doc)
  preface_move(doc.xpath(ns("//preface/acknowledgements")),
               %w(), doc)
end