GTK-Doc 1.25

The makefiles shipped with this version generate an entity file at xml/gtkdocentities.ent, containing entities for e.g. package_name and package_version. You can use this e.g. in the main xml file to avoid hardcoding the version number. Below is an example that shows how the entity file is included and how the entities are used. The entities can also be used in all generated files, GTK-Doc will use the same xml header in generated xml files.

Example 6-2Use pre-generated entities
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED ''">
  <!ENTITY % gtkdocentities SYSTEM "xml/gtkdocentities.ent">
<book id="index" xmlns:xi="">
    <title>&package_name; Reference Manual</title>
      for &package_string;.
      The latest version of this documentation can be found on-line at
      <ulink role="online-location" url="http://[SERVER]/&package_name;/index.html">http://[SERVER]/&package_name;/</ulink>.