Default CALS table entry element with no column separator

Post here questions and problems related to editing and publishing DITA content.
mstrubberg
Posts: 48
Joined: Sat Jan 26, 2013 6:07 pm

Default CALS table entry element with no column separator

Post by mstrubberg »

When creating a table with the Table Wizard, I'd like to have the table <entry colsep="0"> by default. Currently the table column borders automatically apply and I want the column borders to NOT automatically apply.

Can I configure the CALS table template to default <entry colsep="0"> when creating a table using a table wizard or by just entering the table elements individually.
Radu
Posts: 9054
Joined: Fri Jul 09, 2004 5:18 pm

Re: Default CALS table entry element with no column separator

Post by Radu »

Hi,

You are editing DITA content, right?
You cannot easily change the action which inserts a table to automatically set a @colsep attribute to each cell (you would need Java developing skills and our Author SDK).

When the dialog used to insert a table gets shown, you have a Frame combo box there which controls the type of frame used for the table border.
Then indeed you can also specify whether to use or not row and column separators for each cell.
Instead of specifying that attribute to every cell, why don't you specify it directly on the <colspec>?
In this way, it would be applied on the entire column.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
mstrubberg
Posts: 48
Joined: Sat Jan 26, 2013 6:07 pm

Re: Default CALS table entry element with no column separator

Post by mstrubberg »

Yes, Using DITA, CALS table.

The Frame combo box doesn't offer an option for inside column separating borders.

Can the table wizard <tgroup@colspec=0> by default?
Radu
Posts: 9054
Joined: Fri Jul 09, 2004 5:18 pm

Re: Default CALS table entry element with no column separator

Post by Radu »

Hi,

What you want could be possible with Java customizations using our Author SDK. So if you have somebody with Java skills I could give more details about this approach.

Another alternative for you could be to create a custom code template for inserting a table from the Oxygen Preferences->"Editor / Templates / Code Templates" and use if from the content completion window instead of using the usual action of inserting tables.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9054
Joined: Fri Jul 09, 2004 5:18 pm

Re: Default CALS table entry element with no column separato

Post by Radu »

Just to update this thread,

Starting with Oxygen 16.0 when you insert a DITA or a Docbook table, the table wizard dialog allows you to configure the default row and column separators to be used in the newly inserted table.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply