lib/asciidoctor/standoc/cleanup_xref.rb
def xref_to_eref(elem)
        elem["bibitemid"] = elem["target"]
        unless elem["citeas"] = @anchors&.dig(elem["target"], :xref)
          @internal_eref_namespaces.include?(elem["type"]) or
            @log.add("Crossreferences", elem,
                     "#{elem['target']} does not have a corresponding "\
                     "anchor ID in the bibliography!")
        end
        elem.delete("target")
        extract_localities(elem) unless elem.children.empty?
      end
# extending localities to cover ISO referencing
extending localities to cover ISO referencing
extending localities to cover ISO referencing
def xref_to_eref(elem)
        elem["bibitemid"] = elem["target"]
        unless elem["citeas"] = @anchors&.dig(elem["target"], :xref)
          @internal_eref_namespaces.include?(elem["type"]) or
            @log.add("Crossreferences", elem,
                     "#{elem['target']} does not have a corresponding "\
                     "anchor ID in the bibliography!")
        end
        elem.delete("target")
        extract_localities(elem) unless elem.children.empty?
      end
def xref_to_eref ( elem ) elem [ "bibitemid" ] = elem [ "target" ] unless elem [ "citeas" ] = @anchors &. dig ( elem [ "target" ] , :xref ) @internal_eref_namespaces . include? ( elem [ "type" ] ) or @log . add ( "Crossreferences" , elem , "#{elem['target']} does not have a corresponding " "anchor ID in the bibliography!" ) end elem . delete ( "target" ) extract_localities ( elem ) unless elem . children . empty? end
extending localities to cover ISO referencing
extending localities to cover ISO referencing
elem