Method: IsoDoc::Function::XrefGen#sequential_asset_names

Defined in:
lib/isodoc/function/xref_gen.rb

#sequential_asset_names(clause) ⇒ Object



171
172
173
174
175
176
177
178
179
180
181
# File 'lib/isodoc/function/xref_gen.rb', line 171

def sequential_asset_names(clause)
  clause.xpath(ns(".//table")).each_with_index do |t, i|
    next if t["id"].nil? || t["id"].empty?
    @anchors[t["id"]] = anchor_struct(i + 1, nil, @table_lbl, "table")
  end
  sequential_figure_names(clause)
  clause.xpath(ns(".//formula")).each_with_index do |t, i|
    next if t["id"].nil? || t["id"].empty?
    @anchors[t["id"]] = anchor_struct(i + 1, t, @formula_lbl, "formula")
  end
end