Method: IsoDoc::HtmlFunction::Html#html_intro

Defined in:
lib/isodoc/html_function/html.rb

#html_intro(docxml) ⇒ Object



179
180
181
182
183
# File 'lib/isodoc/html_function/html.rb', line 179

def html_intro(docxml)
  doc = to_xhtml_fragment(File.read(@htmlintropage, encoding: "UTF-8"))
  d = docxml.at('//div[@class="prefatory-section"]')
  d.children.first.add_previous_sibling doc.to_xml(encoding: "US-ASCII")
end