Method: IsoDoc::PresentationXMLConvert#display_order

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

#display_order(docxml) ⇒ Object



107
108
109
110
111
112
113
114
115
116
117
118
# File 'lib/isodoc/presentation_function/section.rb', line 107

def display_order(docxml)
  i = 0
  d = @xrefs.clause_order(docxml)
  %i(preface main annex back).each do |s|
    d[s].each do |a|
      i = if a[:multi]
            display_order_xpath(docxml, a[:path], i)
          else display_order_at(docxml, a[:path], i)
          end
    end
  end
end