Method: IsoDoc::Function::Table#thead_parse

Defined in:
lib/isodoc/function/table.rb

#thead_parse(node, table) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/isodoc/function/table.rb', line 11

def thead_parse(node, table)
  thead = node.at(ns("./thead"))
  if thead
    table.thead do |h|
      thead.element_children.each_with_index do |n, i|
        tr_parse(n, h, i, thead.xpath(ns("./tr")).size, true)
      end
    end
  end
end