diff --git a/lib/docbookrx/docbook_visitor.rb b/lib/docbookrx/docbook_visitor.rb index b6b55f3..631956e 100644 --- a/lib/docbookrx/docbook_visitor.rb +++ b/lib/docbookrx/docbook_visitor.rb @@ -394,6 +394,10 @@ def visit_info node alias :visit_bookinfo :visit_info alias :visit_articleinfo :visit_info + def visit_part node + visit_chapter node + end + def visit_chapter node # treat document with root element as books if node == node.document.root