Docbook - Using Entities to define a shared string

By xngo on June 18, 2019

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book [
  <!ENTITY product-name "Docbook">
  <!ENTITY product-version "4.5">
]>
<book>
  <chapter>
    <title>Tutorial: Using Entities to define a shared string</title>
    <para>The latest version of <application>&product-name;</application> is &product-version;.</para>
    <para><application>&product-name;</application> is best used to write documentation.</para>
  </chapter>
</book>

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.