Method: IsoDoc::PresentationXMLConvert#unnest_linkend
- Defined in:
- lib/isodoc/presentation_function/inline.rb
#unnest_linkend(node) ⇒ Object
so not <origin bibitemid=“ISO7301” citeas=“ISO 7301”> <locality type=“section”><reference>3.1</reference></locality></origin>
27 28 29 30 31 32 |
# File 'lib/isodoc/presentation_function/inline.rb', line 27 def unnest_linkend(node) node.at(ns("./fmt-xref[@nested]")) or return node.xpath(ns("./fmt-xref[@nested]")).each { |x| x.delete("nested") } node.xpath(ns("./location | ./locationStack")).each(&:remove) node.replace(node.children) end |