Method: IsoDoc::PresentationXMLConvert#toc_title

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

#toc_title(docxml) ⇒ Object



220
221
222
223
224
225
226
227
# File 'lib/isodoc/presentation_function/section.rb', line 220

def toc_title(docxml)
  docxml.at(ns("//preface/clause[@type = 'toc']")) and return
  ins = toc_title_insert_pt(docxml) or return
  id = UUIDTools::UUID.random_create.to_s
  ins.previous = "    <clause type = 'toc' id='_\#{id}'><title depth='1'>\#{@i18n.table_of_contents}</title></clause>\n  CLAUSE\nend\n"