Method: IsoDoc::HtmlFunction::Html#html_intro
- Defined in:
- lib/isodoc/html_function/postprocess.rb
#html_intro(docxml) ⇒ Object
103 104 105 106 107 108 109 110 |
# File 'lib/isodoc/html_function/postprocess.rb', line 103 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") d.children.first.add_previous_sibling( populate_template(doc.to_xml(encoding: "US-ASCII"), :html) ) end |