Class: IsoDoc::Ietf::Xref
- Inherits:
-
Xref
- Object
- Xref
- IsoDoc::Ietf::Xref
- Defined in:
- lib/isodoc/ietf/xref.rb
Instance Method Summary collapse
Instance Method Details
#termnote_anchor_names(docxml) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/isodoc/ietf/xref.rb', line 6 def termnote_anchor_names(docxml) docxml.xpath(ns("//term[descendant::termnote]")).each do |t| c = IsoDoc::XrefGen::Counter.new notes = t.xpath(ns("./termnote")) notes.each do |n| next if n["id"].nil? || n["id"].empty? idx = notes.size == 1 ? "" : " #{c.increment(n).print}" @anchors[n["id"]] = anchor_struct(idx, n, @labels["note_xref"], "note", false) end end end |