[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Possible formalpara bug
I am using DocBook 5.1b2 with the DocBook XSL-NS Stylesheets 1.76.1. I have noticed that translating a <formalpara> with a <title> results in two <p>s in the generated XHTML 1.1. Here is the DocBook source (try.docbook): <?xml version="1.0"?> <!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V5.1b2//EN" "http://www.oasis-open.org/docbook/xml/5.1b2/dtd/docbook.dtd"> <appendix version = "5.1" xml:lang = "en" xmlns = "http://docbook.org/ns/docbook"> <!-- <title role="hide">Hidden Title</title> --> <formalpara> <title>This is the title of a formalpara.</title> <para> <itemizedlist> <listitem><para>List item 1.</para></listitem> <listitem><para>List item 2.</para></listitem> </itemizedlist> </para> </formalpara> </appendix> I translate the DocBook source thus: xsltproc vendor/docbook-xsl-ns/xhtml-1_1/docbook.xsl try.docbook The generated XHTML (prettied-up) is this: <?xml version="1.0" encoding="utf-8"?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Appendix A. </title> <meta name="generator" content="DocBook XSL-NS Stylesheets V1.76.1"/> </head> <body> <div xml:lang="en" class="appendix" title="Appendix A. "> <div class="titlepage"/> <p title="This is the title of a formalpara."> <strong>This is the title of a formalpara. </strong> </p> <div class="itemizedlist"> <ul class="itemizedlist"> <li class="listitem"><p>List item 1.</p></li> <li class="listitem"><p>List item 2.</p></li> </ul> </div> <p title="This is the title of a formalpara."/> </div> </body> </html> Why is '<p title="This is the title of a formalpara."' generated twice? Is this a bug in the 1.76.1 stylesheets? -- Bill Greene
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]