Method: IsoDoc::XrefGen::Blocks#deflist_term_anchor_names
- Defined in:
- lib/isodoc/xref/xref_gen.rb
#deflist_term_anchor_names(list, list_anchor) ⇒ Object
173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/isodoc/xref/xref_gen.rb', line 173 def deflist_term_anchor_names(list, list_anchor) list.xpath(ns("./dt")).each do |li| label = li.text label = l10n("#{list_anchor[:xref]}: #{label}") li["id"] and @anchors[li["id"]] = { xref: label, type: "deflistitem", container: list_anchor[:container] } li.xpath(ns("./dl")).each do |dl| deflist_term_anchor_names(dl, list_anchor) end end end |