# File lib/asciidoctor/converter/docbook5.rb, line 509
    def inline_anchor node
      case node.type
      when :ref
        %(<anchor#{common_attributes node.target, nil, node.text}/>)
      when :xref
        if (path = node.attributes['path'])
          # QUESTION should we use refid as fallback text instead? (like the html5 backend?)
          %(<link xl:href="#{node.target}">#{node.text || path}</link>)
        else
          linkend = node.attributes['fragment'] || node.target
          (text = node.text) ? %(<link linkend="#{linkend}">#{text}</link>) : %(<xref linkend="#{linkend}"/>)
        end
      when :link
        %(<link xl:href="#{node.target}">#{node.text}</link>)
      when :bibref
        target = node.target
        %(<anchor#{common_attributes target, nil, "[#{target}]"}/>[#{target}])
      else
        warn %(asciidoctor: WARNING: unknown anchor type: #{node.type.inspect})
      end
    end