Method: IsoDoc::Function::Section#clause
- Defined in:
- lib/isodoc/function/section.rb
#clause(isoxml, out) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/isodoc/function/section.rb', line 64 def clause(isoxml, out) isoxml.xpath(ns(self.class::MIDDLE_CLAUSE)).each do |c| out.div **attr_code(id: c["id"]) do |s| clause_name(anchor(c['id'], :label), c&.at(ns("./title")), s, nil) c.elements.reject { |c1| c1.name == "title" }.each do |c1| parse(c1, s) end end end end |