lib/isodoc/mpfd/base_convert.rb in metanorma-mpfd-0.3.2 vs lib/isodoc/mpfd/base_convert.rb in metanorma-mpfd-0.3.3

- old
+ new

@@ -169,21 +169,21 @@ def annex_names(clause, num) @anchors[clause["id"]] = { label: annex_name_lbl(clause, num), xref: "#{@annex_lbl} #{num}", level: 1 } i = 0 - clause.xpath(ns("./clause")).each do |c| + clause.xpath(ns("./clause | ./references")).each do |c| container_names(c, 0) i = annex_naming(c, num, 1, i) end hierarchical_asset_names(clause, num) end def annex_names1(clause, num, level) clause["container"] or @anchors[clause["id"]] = { label: num, xref: "#{@annex_lbl} #{num}", level: level } i = 0 - clause.xpath(ns("./clause")).each do |c| + clause.xpath(ns("./clause | ./references")).each do |c| i = annex_naming(c, num, level, i) end end def clause(isoxml, out)