Method: IsoDoc::Function::Section#preface
- Defined in:
- lib/isodoc/function/section.rb
#preface(isoxml, out) ⇒ Object
189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/isodoc/function/section.rb', line 189 def preface(isoxml, out) title_attr = { class: "IntroTitle" } isoxml.xpath(ns("//preface/clause | //preface/references | "\ "//preface/definitions | //preface/terms")).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 |