[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [BUG] <para><informaltable> generates spurious <p> blocks
Hi Given the following files... ============================================================================== test.dbk -------- <?xml version="1.0"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> <article> <para> A paragraph containing text works fine. </para> <para role="test"> <informaltable> <tbody> <row> <entry> A paragraph containing a table produces empty paragraph blocks </entry> </row> </tbody> </informaltable> </para> </article> ============================================================================== test.sh ------- #!/bin/sh xsltproc -o test.xhtml \ /usr/local/install/docbook-xsl/docbook-xsl-1.71.1/xhtml/docbook.xsl test.dbk ============================================================================== ...running test.sh produces the following output (I have adjusted white space for readability): ============================================================================== test.xhtml ---------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title></title> <meta name="generator" content="DocBook XSL Stylesheets V1.71.1" /> </head> <body> <div class="article" lang="en" xml:lang="en"> <div class="titlepage"> <hr /> </div> <p> A paragraph containing text works fine. </p> <p class="test"> </p> <table> <tbody xmlns=""> A paragraph containing a table produces empty paragraph blocks. </tbody> </table> <p class="test"> </p> </div> </body> </html> ============================================================================== Instead of one paragraph containing the table, we have an empty paragraph before and after the table. Also, the <tr> and <td> elements are missing. I get similar behaviour when I use the HTML stylesheets and when I omit the role attribute. Many apologies if I have missed something, but this behaviour appears to be a bug. My toolchain is as follows: ============================================================================== DocBook v4.4 $ xsltproc --version Using libxml 20626, libxslt 10117 and libexslt 813 xsltproc was compiled against libxml 20626, libxslt 10117 and libexslt 813 libxslt 10117 was compiled against libxml 20626 libexslt 813 was compiled against libxml 20626 docbook-xsl v1.71.1 ============================================================================== Regards Kevin
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]