Method: IsoDoc::PresentationXMLConvert#amend1
- Defined in:
- lib/isodoc/presentation_function/block.rb
#amend1(elem) ⇒ Object
144 145 146 147 148 149 150 151 152 |
# File 'lib/isodoc/presentation_function/block.rb', line 144 def amend1(elem) ret = semx_fmt_dup(elem) ret.xpath(ns("./locality | ./localityStack | ./autonumber | " \ "./classification | ./contributor")).each(&:remove) ret.xpath(ns("./newcontent")).each { |a| a.name = "quote" } ret.xpath(ns("./description")).each { |a| a.replace(a.children) } elem.xpath(ns(".//fmt-name | .//fmt-xref-label")).each(&:remove) elem.next = ret end |