lib/asciidoctor/standoc/cleanup_xref.rb
# extending localities to cover ISO referencing
extending localities to cover ISO referencing
extending localities to cover ISO referencing
def xref_cleanup(xmldoc)
        xmldoc.xpath("//xref").each do |x|
          /:/.match(x["target"]) and xref_to_internal_eref(x)
          next unless x.name == "xref"
          if refid? x["target"]
            x.name = "eref"
            xref_to_eref(x)
          else x.delete("type")
          end
        end
      end
def xref_cleanup ( xmldoc ) xmldoc . xpath ( "//xref" ) . each do | x | / : / . match ( x [ "target" ] ) and xref_to_internal_eref ( x ) next unless x . name == "xref" if refid? x [ "target" ] x . name = "eref" xref_to_eref ( x ) else x . delete ( "type" ) end end end
extending localities to cover ISO referencing
extending localities to cover ISO referencing
xmldoc