Method: IsoDoc::PresentationXMLConvert#fmt_sourcecode

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

#fmt_sourcecode(elem, ret1) ⇒ Object



63
64
65
66
67
68
69
# File 'lib/isodoc/presentation_function/sourcecode.rb', line 63

def fmt_sourcecode(elem, ret1)
  ret = Nokogiri::XML::Node.new("fmt-#{elem.name}", elem.document)
  elem.attributes.each_key { |x| x != "id" and ret[x] = elem[x] }
  ret1.xpath(ns("./name")).each(&:remove)
  ret << ret1.children
  elem << ret
end