Method: IsoDoc::XrefGen::Blocks#amend_preprocess
- Defined in:
- lib/isodoc/xref/xref_gen.rb
#amend_preprocess(xmldoc) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/isodoc/xref/xref_gen.rb', line 11 def amend_preprocess(xmldoc) xmldoc.xpath(ns("//amend[newcontent]")).each do |a| autonum = amend_autonums(a) NUMBERED_BLOCKS.each do |b| a.xpath(ns("./newcontent//#{b}")).each_with_index do |e, i| autonum[b] && i.zero? and e["number"] = autonum[b] !autonum[b] and e["unnumbered"] = "true" end end end end |