Login  Register

Docbook Namespace Issue

Posted by ghillert on Jun 06, 2013; 9:00pm
URL: https://discuss.asciidoctor.org/Docbook-Namespace-Issue-tp315.html

Hi,

I am experiencing the following issue with multiple authors in my asciidoctor generated docbook xml file. Once I convert the docbook.xml file with our own Docbook to PDF generator, there is NO space between the first and the last name of each author.

The asciidoctor generated docbook xml file uses the following header:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<book lang="en">
  <bookinfo>
...

The issue seems to be the namespace declaration. Our manual docbook files have the following header:

<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="spring-integration-reference"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xlink="http://www.w3.org/1999/xlink">
  <bookinfo>
...

With that header (copied over manually), the author names are appropriately spaced. As I am familiar with Docbook but NOT an expert, I am not even sure whether the issue is on our side our maybe related to the asciidoctor generated header. What is the more appropriate header?

How can I can customize the header and the namespace declaration?

Thank you so much for your insights!

Cheers,

Gunnar