Package: dblatex Version: 0.3-2 While working on a book project, I ran into a problem with the <part> handling in dblatex. See <URL: https://github.com/petterreinholdtsen/free-culture-lessig > for the complete book project.
The problem I experience is that the chapters at the end of the book, after the last <part>, are added into the last part in the content list instead of showing up as independent chapters. I discovered a similar problem with the example docbook file available from <URL: https://trac.v2.nl/export/7884/v2fo/trunk/v2fo/lib/docbook/test/book.xml >. There the appendixes show up as parts instead of as simple appendixes. I changed the XML slightly like this to get it to verify with xmllint: --- book.xml.1 2003-03-26 13:05:41.000000000 +0100 +++ book.xml 2012-07-29 12:49:38.000000000 +0200 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE book - PUBLIC "-//Norman Walsh//DTD DocBk XML V3.1.7//EN" - "http://nwalsh.com/docbook/xml/3.1.7/docbookx.dtd"> + +<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" +"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" > <!-- test document --> @@ -28,12 +28,12 @@ </preface> <part> -<docinfo> +<partinfo> <title>Part One Title</title> <legalnotice> <para>Foo! A legal notice in a part!</para> </legalnotice> -</docinfo> +</partinfo> <title>Part One Title</title> <partintro> <title>PartIntro Title</title> @@ -72,8 +72,8 @@ </part> <chapter> - <docinfo><title>First Chapter</title><subtitle>Chapter Subtitle</subtitle> - </docinfo><title>First Chapter</title> + <chapterinfo><title>First Chapter</title><subtitle>Chapter Subtitle</subtitle> + </chapterinfo><title>First Chapter</title> <para>This is a test paragraph.</para> <figure id="testfig3"><title>Test Figure</title> <programlisting>This is a Is this behaviour a bug in dblatex, or am I using it wrong? Is there something I can do to get a chapter to show up after a part without becoming included in the part? Attaching the example XML for future reference. -- Happy hacking Petter Reinholdtsen
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" > <!-- test document --> <book><title>Book Test Document Title</title> <bookinfo> <title>Bookinfo Test Document Title</title> <subtitle>Book Subtitle</subtitle> <authorgroup> <author><firstname>Norman</firstname><surname>Walsh</surname></author> </authorgroup> </bookinfo> <dedication><title>First Dedication</title> <para>Just a test. “What about—this?”</para> </dedication> <dedication> <para>Just a test.</para> </dedication> <preface><title>Foreword</title> <?dbhtml filename="forward.htm"?> <para>This is a test paragraph.</para> </preface> <part> <partinfo> <title>Part One Title</title> <legalnotice> <para>Foo! A legal notice in a part!</para> </legalnotice> </partinfo> <title>Part One Title</title> <partintro> <title>PartIntro Title</title> <para>Partintro content<footnote> <para>This is a footnote in a partintro.</para> </footnote>.</para> <sect1> <title>PartIntro Section</title> <para>PartIntros can actually have section content as well.</para> </sect1> </partintro> <chapter id="chapter"> <title id="chaptertitle">Section Tests</title> <sect1><title>First Sect1</title> <para>Paragraph.</para> <figure id="testfig1"><title>Test Figure</title> <programlisting>This is a ProgramListing </programlisting> </figure> </sect1> <sect1><title>Second Sect1</title> <para>Paragraph.</para> </sect1> <sect1><title>Third Sect1</title> <para>Paragraph.</para> <figure id="testfig2"><title>Test Figure</title> <programlisting>This is a ProgramListing </programlisting> </figure> </sect1> </chapter> </part> <chapter> <chapterinfo><title>First Chapter</title><subtitle>Chapter Subtitle</subtitle> </chapterinfo><title>First Chapter</title> <para>This is a test paragraph.</para> <figure id="testfig3"><title>Test Figure</title> <programlisting>This is a ProgramListing </programlisting> </figure> </chapter> <chapter><title>Second Chapter</title> <para>This is a test paragraph. <indexterm> <primary>ap1</primary> </indexterm> <indexterm> <primary>ap2</primary> </indexterm> <indexterm> <primary>bp1</primary> <secondary>bp1bs1</secondary> </indexterm> <indexterm> <primary>bp2</primary> </indexterm> <indexterm> <primary>cp1</primary> <secondary>cp1cs1</secondary> <tertiary>cp1cs1ct1</tertiary> </indexterm> <indexterm> <primary>cp2</primary> </indexterm> <indexterm> <primary>cp2see</primary><see>cp2</see> </indexterm> <indexterm> <primary>dp1</primary> <secondary>dp1ds1</secondary> </indexterm> <indexterm> <primary>dp1</primary> <secondary>dp1ds2</secondary> </indexterm> <indexterm> <primary>dp2</primary> </indexterm></para> </chapter> <chapter><title>Third Chapter</title> <para>This is a test paragraph.</para> </chapter> <appendix><title>First Appendix</title> <para>This is just a test.</para> <figure id="testfig4"><title>Test Figure</title> <programlisting>This is a ProgramListing </programlisting> </figure> </appendix> <appendix><title>Second Appendix</title> <para>This is just a test. <indexterm> <primary>ap1</primary> </indexterm> <indexterm> <primary>ap2</primary> </indexterm> <indexterm> <primary>bp1</primary> <secondary>bp1bs1</secondary> </indexterm> <indexterm> <primary>bp2</primary> </indexterm> <indexterm> <primary>cp1</primary> <secondary>cp1cs1</secondary> <tertiary>cp1cs1ct1</tertiary> </indexterm> <indexterm> <primary>cp2</primary> </indexterm> <indexterm> <primary>dp1</primary> <secondary>dp1ds1</secondary> </indexterm> <indexterm> <primary>dp1</primary> <secondary>dp1ds2</secondary> </indexterm> <indexterm> <primary>dp2</primary> </indexterm></para> </appendix> </book>