Method: IsoDoc::HtmlFunction::Html#html_footnote_filter
- Defined in:
- lib/isodoc/html_function/html.rb
#html_footnote_filter(docxml) ⇒ Object
234 235 236 237 238 239 240 241 242 |
# File 'lib/isodoc/html_function/html.rb', line 234 def html_footnote_filter(docxml) seen = {} i = 1 docxml.xpath('//a[@epub:type = "footnote"]').each do |x| fn = docxml.at(%<//*[@id = '#{x['href'].sub(/^#/, '')}']>) || next i, seen = update_footnote_filter(fn, x, i, seen) end docxml end |