Method: IsoDoc::Function::Section#preface
- Defined in:
- lib/isodoc/function/section.rb
#preface(isoxml, out) ⇒ Object
199 200 201 202 203 204 205 206 207 208 209 210 |
# File 'lib/isodoc/function/section.rb', line 199 def preface(isoxml, out) title_attr = { class: "IntroTitle" } isoxml.xpath(ns("//preface/clause")).each do |f| page_break(out) out.div **{ class: "Section3", id: f["id"] } do |div| clause_name(nil, f&.at(ns("./title")), div, title_attr) f.elements.each do |e| parse(e, div) unless e.name == "title" end end end end |