# File lib/asciidoctor/backends/docbook5.rb, line 79 def anchor(target, text, type, node) case type when :ref %(<anchor#{common_attrs target, nil, text}/>) when :xref if node.attr? 'path', nil linkend = (node.attr 'fragment') || target text.nil? ? %(<xref linkend="#{linkend}"/>) : %(<link linkend="#{linkend}">#{text}</link>) else text = text || (node.attr 'path') %(<link xlink:href="#{target}">#{text}</link>) end when :link %(<link xlink:href="#{target}">#{text}</link>) when :bibref %(<anchor#{common_attrs target, nil, "[#{target}]"}/>[#{target}]) end end
Generated with the Darkfish Rdoc Generator 2.