Bug 1069405 - Embedded tables do not work
Summary: Embedded tables do not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 4.1
Assignee: Jeff Fearn 🐞
QA Contact: Ruediger Landmann
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-24 23:23 UTC by Matthew Casperson
Modified: 2014-08-04 22:28 UTC (History)
3 users (show)

Fixed In Version: 4.1.0
Clone Of:
Environment:
Last Closed: 2014-05-05 06:03:30 UTC
Embargoed:


Attachments (Terms of Use)
Publican book with embedded tables (159.85 KB, application/x-bzip)
2014-02-24 23:23 UTC, Matthew Casperson
no flags Details

Description Matthew Casperson 2014-02-24 23:23:06 UTC
Created attachment 867181 [details]
Publican book with embedded tables

The following XML does not compile in Publican 4. This has been copied directly from http://www.docbook.org/tdg/en/html/entrytbl.html.

<informaltable frame='all'>
<tgroup cols='3'>
<tbody>
<row>
  <entry>a1</entry>
  <entry>b1</entry>
  <entry>c1</entry>
</row>
<row>
  <entry>a2</entry>
  <entrytbl cols='3'>
    <tbody>
      <row>
        <entry>b2a1</entry>
        <entry>b2b1</entry>
        <entry>b2c1</entry>
      </row>
      <row>
        <entry>b2a2</entry>
        <entry>b2b2</entry>
        <entry>b2c2</entry>
      </row>
      <row>
        <entry>b2a3</entry>
        <entry>b2b3</entry>
        <entry>b2c3</entry>
      </row>
    </tbody>
  </entrytbl>
  <entry>c2</entry>
</row>
<row>
  <entry>a3</entry>
  <entry>b3</entry>
  <entry>c3</entry>
</row>
</tbody>
</tgroup>
</informaltable>

The resulting error is:

Attribute cols (3) does not match number of entry elements 
(XML::Element=HASH(0x4bfe558))

The attached file has a sample book with an embedded table that demonstrates the bug.

Comment 1 Jeff Fearn 🐞 2014-02-24 23:50:00 UTC
http://jfearn.fedorapeople.org/en-US/Publican/4.0/html/Users_Guide/appe-Publican-Users_Guide-Disallowed_elements_and_attributes.html

entrytbl used to cause FOP to explode, unless that has been resolved in FOP we can't support both FOP and entrytbl.

Comment 2 Jeff Fearn 🐞 2014-02-28 01:25:50 UTC
Added entrytbl to cols count. Fixed error message so it prints the number of cols found instead of the hash ref.

To ssh://git.fedorahosted.org/git/publican.git
   80357fa..4335d0c  devel -> devel

Comment 3 Jeff Fearn 🐞 2014-05-05 06:03:30 UTC
A fix for this shipped in Publican 4.1.0.


Note You need to log in before you can comment on or make changes to this bug.