# File lib/asciidoctor/backends/docbook45.rb, line 161
  def result(sec)
    if sec.special
      tag = sec.level <= 1 ? sec.sectname : 'section'
    else
      tag = sec.document.doctype == 'book' && sec.level <= 1 ? (sec.level == 0 ? 'part' : 'chapter') : 'section'
    end
    %(<#{tag}#{common_attrs(sec.id, (sec.attr 'role'), (sec.attr 'reftext'))}>
#{sec.title? ? "<title>#{sec.title}</title>" : nil}
#{sec.content.chomp}
</#{tag}>\n)
  end