Method: IsoDoc::Function::Section#foreword

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

#foreword(isoxml, out) ⇒ Object



111
112
113
114
115
116
117
118
119
# File 'lib/isodoc/function/section.rb', line 111

def foreword(isoxml, out)
  f = isoxml.at(ns("//foreword")) || return
  page_break(out)
  out.div **attr_code(id: f["id"]) do |s|
    clause_name(nil, f.at(ns("./title")) || @i18n.foreword, s,
                { class: "ForewordTitle" })
    f.elements.each { |e| parse(e, s) unless e.name == "title" }
  end
end