Sha256: 2ea75c46c1c001250d81a8d64b1d86f348aa2b08e0416c38dffcd5e40158a96d
Contents?: true
Size: 1.17 KB
Versions: 18
Compression:
Stored size: 1.17 KB
Contents
module IsoDoc module XrefGen module Sections def clause_order(docxml) { preface: clause_order_preface(docxml), main: clause_order_main(docxml), annex: clause_order_annex(docxml), back: clause_order_back(docxml) } end def clause_order_preface(_docxml) [{ path: "//preface/*", multi: true }] end def clause_order_main(docxml) [ { path: "//sections/clause[@type = 'scope']" }, { path: @klass.norm_ref_xpath }, { path: "//sections/terms | " \ "//sections/clause[descendant::terms]", multi: true }, { path: "//sections/definitions | " \ "//sections/clause[descendant::definitions]" \ "[not(descendant::terms)]", multi: true }, { path: @klass.middle_clause(docxml), multi: true }, ] end def clause_order_annex(_docxml) [{ path: "//annex", multi: true }] end def clause_order_back(_docxml) [ { path: @klass.bibliography_xpath }, { path: "//indexsect", multi: true }, { path: "//colophon/*", multi: true }, ] end end end end
Version data entries
18 entries across 18 versions & 1 rubygems