Method: IsoDoc::PresentationXMLConvert#annex1

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

#annex1(elem) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
# File 'lib/isodoc/presentation_function/section.rb', line 51

def annex1(elem)
  lbl = @xrefs.anchor(elem["id"], :label, false)
  # TODO: do not alter title, alter semx/@element = title
  t = elem.at(ns("./title")) and
    t.children = "<strong>#{to_xml(t.children)}</strong>"
  if unnumbered_clause?(elem)
    prefix_name(elem, {}, nil, "title")
  else
    prefix_name(elem, { caption: annex_delim(elem) }, lbl, "title")
  end
end