OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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"
      version     = "5.1"
      xml:lang    = "en"
      xmlns       = "http://docbook.org/ns/docbook";>
     <!-- <title role="hide">Hidden Title</title> -->
       <title>This is the title of a formalpara.</title>
           <listitem><para>List item 1.</para></listitem>
           <listitem><para>List item 2.</para></listitem>

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";>
       <title>Appendix A. </title>
       <meta name="generator" content="DocBook XSL-NS Stylesheets V1.76.1"/>
       <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>
         <div class="itemizedlist">
           <ul class="itemizedlist">
             <li class="listitem"><p>List item 1.</p></li>
             <li class="listitem"><p>List item 2.</p></li>
         <p title="This is the title of a formalpara."/>

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]