[debiandoc-sgml-pkgs] Bug#430606: debiandoc-sgml: debiandoc2xml generates invalid DocBook from <author> and <copyright>

W. Borgert debacle at debian.org
Mon Jun 25 23:03:11 UTC 2007


Package: debiandoc-sgml
Version: 1.1.101
Severity: normal

The following debiandoc:

<author>John Locke
<author>David Hume
<copyright>
<copyrightsummary>1689-1695 John Locke</copyrightsummary>
<copyrightsummary>1734-1776 David Hume</copyrightsummary>

is translated by debiandoc2xml to:

<author> <firstname>John</firstname> <surname>Locke</surname> John Locke </author>
<author> <firstname>David</firstname> <surname>Hume</surname> David Hume </author>
...
<copyright>
<year><!-- put year -->16891695</year>
<holder><!-- put name -->1689-1695 John Locke</holder>
<year><!-- put year -->17341776</year>
<holder><!-- put name -->1734-1776 David Hume</holder>
</copyright>

Both is invalid: The authors name must not be repeated after
</surname> and every copyright element must have only one holder
(but can have more than one year), e.g.:

<copyright>
<year><!-- put year -->1689</year>
<year><!-- put year -->1695</year>
<holder><!-- put name -->John Locke</holder>
</copyright>
<copyright>
<year><!-- put year -->1734</year>
<year><!-- put year -->1776</year>
<holder><!-- put name -->David Hume</holder>
</copyright>





More information about the Debiandoc-sgml-pkgs mailing list