Method: IsoDoc::PresentationXMLConvert#clause

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

#clause(docxml) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/isodoc/presentation_function/section.rb', line 6

def clause(docxml)
  docxml.xpath(ns("//clause | //terms | //definitions | //references | " \
                  "//introduction | //foreword | //preface/abstract | " \
                  "//acknowledgements | //colophon | //indexsect "))
    .each do |f|
    f.parent.name == "annex" &&
      @xrefs.klass.single_term_clause?(f.parent) and next
    clause1(f)
  end
end