Method: IsoDoc::PresentationXMLConvert#floattitle

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

#floattitle(docxml) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/isodoc/presentation_function/section.rb', line 35

def floattitle(docxml)
  p = "//clause | //annex | //appendix | //introduction | //foreword | " \
      "//preface/abstract | //acknowledgements | //terms | " \
      "//definitions | //references | //colophon | //indexsect"
  docxml.xpath(ns(p)).each do |f|
    floattitle1(f)
  end
  # top-level
  docxml.xpath(ns("//sections | //preface | //colophon"))
    .each { |f| floattitle1(f) }
end