Home Forums General XMetaL Discussion Display Element As Table Without Border Reply To: Display Element As Table Without Border

Derek Read

Reply to: Display Element As Table Without Border

There is no way to do this for “semantic” tables (anything rendered as a table that is not HTML or CALS).

It is possible to make this work for HTML or CALS tables but the feature is currently entirely within the author's control. If you have an HTML table with @border=”0″ set then the border will be displayed as a dotted line. This gives the author an indication that there really aren't any borders there, but allows them to still navigate the table, which would be very difficult in some cases when the borders are not rendered at all. If there is some content within cells then it may be somewhat easier, but as soon as there is no content it may be impossible to tell what is going on. An additional setting (a user preference) exists on the View menu for those users that really wish to display their HTML or CALS tables with no borders, but this can only be controlled by the user (for previously mentioned reasons). They can toggle the “Show/Hide Table Grid” option on and off.

I think one of two things would need to be changed in the product to support what you want:
1) Implement support for the CSS border property for semantic tables.
2) Implement a way to identify an attribute or other setting that tells XMetaL how thick to draw a border on a particular semantic table (possibly a CTM setting or an API).

What is the intention behind what you are doing? I assume it is to more closely match your editing view with your output (that is the usual case and it makes sense in most instances).

I suspect that if you were to test this using the Journalist sample (or DITA authoring functionality if you have XMetaL Author Enterprise) you may find that hiding borders completely might make it difficult to author documents:

1) Create a new Journalist document.
2) Insert a TABLE of any size (columns and rows).
3) On the

element set @border = “0”.
At this point you see dotted lines for table borders.
4) On the View menu select Hide Table Borders.

The same can be demoed with DITA:
1) Create a new DITA topic.
2) Insert a table of any size (columns and rows with or without header).
3) On the

element set @frame = “none”.
4) On the element set @rowsep = 0 and @colsep = 0.
At this point you see dotted lines for table borders.
5) On the View menu select Hide Table Borders.

Reply

Products
Downloads
Support