class IsoDoc::Gb::PresentationXMLConvert
Public Instance Methods
annex1(f)
click to toggle source
# File lib/isodoc/gb/presentation_xml_convert.rb, line 14 def annex1(f) lbl = @xrefs.anchor(f['id'], :label) if t = f.at(ns("./title")) t.children = "#{t.children.to_xml}" end prefix_name(f, "<br/><br/>", lbl, "title") end
example1(f)
click to toggle source
# File lib/isodoc/gb/presentation_xml_convert.rb, line 7 def example1(f) n = @xrefs.get[f["id"]] lbl = (n.nil? || n[:label].nil? || n[:label].empty?) ? @i18n.example : l10n("#{@i18n.example} #{n[:label]}") prefix_name(f, " — ", l10n(lbl + ":"), "name") end