Method: IsoDoc::PresentationXMLConvert#date1

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

#date1(elem) ⇒ Object



127
128
129
130
131
132
133
# File 'lib/isodoc/presentation_function/inline.rb', line 127

def date1(elem)
  elem["value"] && elem["format"] or return
  val = @i18n.date(elem["value"], elem["format"].strip)
  d = semx_fmt_dup(elem)
  d << val
  elem.next = "<fmt-date>#{to_xml(d)}</fmt-date>"
end