Method: IsoDoc::Xref#parse

Defined in:
lib/isodoc/xref.rb

#parse(docxml) ⇒ Object

extract names for all anchors, xref and label



70
71
72
73
74
75
76
77
78
79
# File 'lib/isodoc/xref.rb', line 70

def parse(docxml)
  @doctype = docxml.at(ns("//bibdata/ext/doctype"))&.text
  @seen = SeenAnchor.new(docxml)
  amend_preprocess(docxml) if @parse_settings.empty?
  initial_anchor_names(docxml)
  back_anchor_names(docxml)
  asset_anchor_names(docxml)
  localise_anchors
  @parse_settings = {}
end