Class: IsoDoc::Generic::PresentationXMLConvert

Inherits:
PresentationXMLConvert
  • Object
show all
Includes:
Init
Defined in:
lib/isodoc/generic/presentation_xml_convert.rb

Instance Method Summary collapse

Methods included from Init

#i18n_init, #metadata_init, #xref_init

Methods included from Utils

#baselocation, #configuration, #fileloc

Instance Method Details

#annex1(f) ⇒ Object


8
9
10
11
12
13
14
# File 'lib/isodoc/generic/presentation_xml_convert.rb', line 8

def annex1(f)
  lbl = @xrefs.anchor(f['id'], :label)
  if t = f.at(ns("./title"))
    t.children = "<strong>#{t.children.to_xml}</strong>"
  end
  prefix_name(f, "<br/>", lbl, "title")
end