Method: IsoDoc::Function::Section#terms_defs
- Defined in:
- lib/isodoc/function/section.rb
#terms_defs(isoxml, out, num) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/isodoc/function/section.rb', line 64 def terms_defs(isoxml, out, num) f = isoxml.at(ns(TERM_CLAUSE)) or return num out.div **attr_code(id: f["id"]) do |div| num = num + 1 clause_name(num, f&.at(ns("./title")), div, nil) f.elements.each do |e| parse(e, div) unless %w{title source}.include? e.name end end num end |