
Hi Mike, So you have a custom implementation of the Docbook schemas which allow you to specify the "width" on a table with a "frame" attribute. We analyzed this situation (the table size is properly computed and displayed but the columns do not take the additional space) which seems to be a bug in Oxygen and we'll try to come up with a fix in the next version (probably it September this year). Unfortunately I cannot give you a workaround for now. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 6/17/2011 6:43 PM, Mike Starov wrote:
Hello all.
I am working on customizing DocBook for our publishing department. I have a difficulty displaying tables in Author mode with “width” set in percents. The table itself is displayed fine with width corresponding to % of the page set in width attribute, but the columns are displayed as much narrower. There is a big chunk of empty space on the right that’s not taken up but the columns.
As soon as I change tables width to a set value like 500 the columns expand and take up the whole table space.
Example below. Try pasting it and seeing how it gets displayed in oXygen. I know that DocBook schema bundled with Oxygen complains about width attribute but it is supported by HTML tables and there are rules for it in CSS.
How can I fix this. I tried playing with CSS but could not find any solution. I looked at the API and there is some interfaces that seem to be able to help with this but It seems pretty complicated. I need some help getting started.
<?xml version="1.0" encoding="UTF-8"?> <sect1xmlns="http://docbook.org/ns/docbook"version="5.0"> <title>First section</title> <para> <tableframe="all"width="80%"> <title>This is table with % width</title> <tgroupcols="4"> <colspeccolname="c1"colnum="1"colwidth="1.0*"/> <colspeccolname="c2"colnum="2"colwidth="1.0*"/> <thead> <row> <entry>H</entry> <entry>A</entry> </row> </thead> <tbody> <row> <entry>1</entry> <entry>2</entry> </row> </tbody> </tgroup> </table> <tableframe="all"width="500"> <title>This is table with fixed width</title> <tgroupcols="4"> <colspeccolname="c1"colnum="1"colwidth="1.0*"/> <colspeccolname="c2"colnum="2"colwidth="1.0*"/> <thead> <row> <entry>H</entry> <entry>A</entry> </row> </thead> <tbody> <row> <entry>1</entry> <entry>2</entry> </row> </tbody> </tgroup> </table> <tableframe="all"width="80%"> <caption>Nother table HTML</caption> <colwidth="50%"/> <colwidth="50%"/> <thead> <tr> <th>A</th> <th>B</th> </tr> </thead> <tbody> <tr> <td/> <td/> </tr> </tbody> </table> <tableframe="all"width="500"> <caption>Nother table HTML fixed width</caption> <colwidth="50%"/> <colwidth="50%"/> <thead> <tr> <th>A</th> <th>B</th> </tr> </thead> <tbody> <tr> <td/> <td/> </tr> </tbody> </table> </para> </sect1>
Sincerely,
Mike Starovoytov
Software Engineer
CME Resource
1482 Stone Point Drive, Suite 120
Roseville, CA 95661-2839
Telephone: 800-232-4238, extension 193
Fax: (916) 783-6067
Email: mike.starov@netce.com
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user