Method: IsoDoc::Function::References#norm_ref

Defined in:
lib/isodoc/function/references.rb

#norm_ref(isoxml, out, num) ⇒ Object



187
188
189
190
191
192
193
194
195
196
197
198
199
# File 'lib/isodoc/function/references.rb', line 187

def norm_ref(isoxml, out, num)
  (f = isoxml.at(ns(norm_ref_xpath)) and f["hidden"] != "true") or
    return num
  out.div do |div|
    num += 1
    clause_name(num, f.at(ns("./title")), div, nil)
    if f.name == "clause"
      f.elements.each { |e| parse(e, div) unless e.name == "title" }
    else biblio_list(f, div, false)
    end
  end
  num
end