Table funcion in Docbook Author view

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Ken
Posts: 6
Joined: Wed Nov 12, 2008 8:40 pm

Table funcion in Docbook Author view

Post by Ken »

In Author view, how am I going to adjust the table width??? I cannot drag the width line to adjust, anyone could help me with this???
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Table funcion in Docbook Author view

Post by sorin_ristache »

Hello,

You can change the displayed width of a table column in the CSS stylesheet that drives the Author mode for the edited XML document. For example in XHTML documents DocBook documents you can set the width property on td elements used for table cells. In DocBook documents you can control the column width also in the XML file with the attributes namest and nameend of the element entry used for a table cell.

If Oxygen XML Author allows adjusting the table width by dragging the column border with the mouse in Author mode you may think that this will be also the format of the table in the final output (XHTML, PDF, etc) generated by a transformation of the same XML document with an XSLT stylesheet and that would not be true. Dragging the column border in Author mode would do only a visual change in Author mode without changing the CSS stylesheet used in Author mode and without changing any XSLT stylesheet that may be associated with the same XML document.


Regards,
Sorin
Ken
Posts: 6
Joined: Wed Nov 12, 2008 8:40 pm

Re: Table funcion in Docbook Author view

Post by Ken »

Hi Sorin,

In current docbook css and xml, how am I going to expend the width of the cals table using the current docbook css??? By using namest and namend, it is actually doing a cell span, is there any way to widen it without spanning.

I understand your point that it would not show out the exact output from xslt, at least it will be good if I could edit the current docbook css to widen the default width they have now. How would I go about doing it???
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Table funcion in Docbook Author view

Post by sorin_ristache »

I am sorry, in the current version (10.0) the width property is implemented only at the table level, not at the table cell level. That is the width property is applied only if it is used on elements with the display:table property. For DocBook you can customize the predefined CSS and add the width property to one of the elements table, informaltable, tgroup.

We will consider allowing adjusting the width of table cells/table columns.


Regards,
Sorin
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Table funcion in Docbook Author view

Post by sorin_ristache »

Hello,

We made the table cells resizable by drag and drop and by table properties set in the XML document (for example the colwidth attribute or the width attribute). This feature will be available starting with version 10.2 which will be released in a week.


Regards,
Sorin
Post Reply