XLink support

  • each inline element can also serve as a simple XLink

  • it is necessary to declare XLink namespace:

    <article xmlns="http://docbook.org/ns/docbook" 
             xmlns:xl="http://www.w3.org/1999/xlink" 
             version="5.0">
      <title>Test article</title>
    
      <para><application xl:href="http://www.gnu.org/software/emacs/emacs.html">Emacs</application> 
        is my favorite text editor.</para>
      …
  • ulink was removed in favor of ubiquitous linking:

    <link xl:href="http://docbook.org">DocBook site</link>
  • XLink with fragment identifier can be used for cross-references inside one document

    <command linkend="dir">DIR</command>
    <command xl:href="#dir">DIR</command>
    • difference is in validation—linkend is checked during validation for ID/IDREF consistency

    • XLink is not checked—can be useful for XInclude based modular documents