Class: Nokogiri::XML::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/html2doc/math.rb

Constant Summary collapse

OOXML_NS =
"http://schemas.openxmlformats.org/officeDocument/2006/math".freeze

Instance Method Summary collapse

Instance Method Details

#ooxml_xpath(path) ⇒ Object



13
14
15
16
# File 'lib/html2doc/math.rb', line 13

def ooxml_xpath(path)
  p = Metanorma::Utils::ns(path).gsub("xmlns:", "m:")
  xpath(p, "m" => OOXML_NS)
end