Method: IsoDoc::XrefGen::Sections#clause_order_main

Defined in:
lib/isodoc/xref/xref_sect_gen.rb

#clause_order_main(docxml) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/isodoc/xref/xref_sect_gen.rb', line 15

def clause_order_main(docxml)
  [
    { path: "//sections/clause[@type = 'scope']" },
    { path: @klass.norm_ref_xpath },
    { path: "//sections/terms | " \
      "//sections/clause[descendant::terms]" },
    { path: "//sections/definitions | " \
      "//sections/clause[descendant::definitions]" \
      "[not(descendant::terms)]" },
    { path: @klass.middle_clause(docxml), multi: true },
  ]
end