Method: IsoDoc::PresentationXMLConvert#annotations

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

#annotations(elem) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/isodoc/presentation_function/sourcecode.rb', line 57

def annotations(elem)
  elem.at(ns("./annotation")) or return
  ret = ""
  elem.xpath(ns("./annotation")).each do |a|
    a.remove
    ret += "      <dt id='\#{a['id']}'><span class='c'>\#{@callouts[a['id']]}</span></dt>\n      <dd>\#{a.children.to_xml}</dd>\n    OUT\n  end\n  elem << \"<dl><name>\#{@i18n.key}</name>\#{ret}</dl>\"\nend\n"