lib/docbookrx/docbook_visitor.rb
# transfer node type constants from Nokogiri
transfer node type constants from Nokogiri
transfer node type constants from Nokogiri
def visit_inlinemediaobject node
    src = node.at_css('imageobject imagedata').attr('fileref')
    alt = text_at_css node, 'textobject phrase'
    generated_alt = ::File.basename(src)[0...-(::File.extname(src).length)]
    alt = nil if alt && alt == generated_alt
    append_text %(image:#{src}[#{lazy_quote alt}])
    false
  end
def visit_inlinemediaobject node src = node . at_css ( 'imageobject imagedata' ) . attr ( 'fileref' ) alt = text_at_css node , 'textobject phrase' generated_alt = :: File . basename ( src ) [ 0 ... - ( :: File . extname ( src ) . length ) ] alt = nil if alt && alt == generated_alt append_text %(image:#{src}[#{lazy_quote alt}]) false end
transfer node type constants from Nokogiri
transfer node type constants from Nokogiri
node
<not_specific>