#999 Table title's footnote should be global/page footnote

open
nobody
XSL (1066)
5
2008-07-29
2008-07-29
No

Table's title footnote (which isn't table's content footnote) should be displayed as a global/page footnote not as table footnote below the table.

This problem is caused by fo/table.xsl and fo/footnote.xsl threating all <footnote> elements inside <table> or <informaltable> as table footnotes. While only elements in actual table contents (<tgroup>) should be there.

I'm attaching simple patch for 4.x that checks elements just in <tgroup>, I'm not sure if it is good enough.

Note that DocBook5 XSL is unfortunately broken too.

Best regards,
Adam

Discussion

  • Mauritz Jeanson

    Mauritz Jeanson - 2008-09-12

    I'm sorry if I'm missing something obvious, but may I ask why you think this is a bug?
    Can you provide a test document that clearly demonstrates the problem?

     
  • Adam Strzelecki

    Adam Strzelecki - 2008-09-12

    My straight answer is that, I think this is a bug, because the table title doesn't belong IMHO to table content.

    More clear explanation would require giving here my configuration, that has one important thing -> all docbook figure titles are below the figures (XSL setting).
    Right now I don't have the file for you but instead of that now I'll show it by example, so you can tell yourself if current implementation is right.

    =========== CURRENT IMPLEMENTATION SAMPLE PAGE ================

    9.1 Few words about salaries

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
    eiusmod tempor incididunt ut labore et dolore magna aliqua. *1

    +---------+-----------+-------------+
    | Person | Salary *b | Increase *c |
    +---------+-----------+-------------+
    | Anne | 1400$ | +10% |
    | John | 1200$ | +30% |
    | Arthur | 3100$ | +5% |
    +---------+-----------+-------------+
    (a) Counted in the last month
    (b) Per month increase
    (c) Last month

    Table 8. Company statistics *a

    Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
    cupidatat non proident, sunt in culpa qui officia deserunt
    mollit anim id est laborum.
    _______________________________________________________________
    (1) Lorem ipsum

    =========== DESIRED IMPLEMENTATION SAMPLE PAGE ================

    9.1 Few words about salaries

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
    eiusmod tempor incididunt ut labore et dolore magna aliqua. *1

    +---------+-----------+-------------+
    | Person | Salary *a | Increase *b |
    +---------+-----------+-------------+
    | Anne | 1400$ | +10% |
    | John | 1200$ | +30% |
    | Arthur | 3100$ | +5% |
    +---------+-----------+-------------+
    (a) Per month increase
    (b) Last month

    Table 8. Company statistics *2

    Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
    cupidatat non proident, sunt in culpa qui officia deserunt
    mollit anim id est laborum.
    _______________________________________________________________
    (1) Lorem ipsum
    (2) Counted in the last month

    ==========================================

    Note that with current implementation and my setting having the title below the figure (table) the footnotes are first of all in the wrong order, and anyway the title's footnote should be global page footnote as in the desired implementation.

     
  • David Cramer

    David Cramer - 2009-02-06

    If you have the table titles positioned after the table, then the behavior ono desires makes sense. If you have the table titles coming before the table, then it would be better to have the footnote in the title be grouped with the table footnotes at the end of the table. I put my table titles before the tables, so I'm find with the current behavior EXCEPT that the table title footnote has a number as its marker and the other footnotes in the table have letters. So if you have <table><title>Foo<footnote><para>bar</para></footnote></title>....<entry>blah<footnote><para>wooga</para>/footnote></entry>...</table> you'll end up with 1) bar a) wooga at the end of the table, which looks dumb (and if there are other footnotes before the table in that section, the bar footnote number would be 2 or whatever.

     

Log in to post a comment.