Pages: 1
Print
Author Topic: [XMetaL Tables] Cell merging not working in XMetaL for enhanced CALS model  (Read 112 times)
phe_de
Member

Posts: 2


« on: August 20, 2019, 08:04:26 AM »

Hello,

One of our customers uses a complex XML Schema to validate their contents, which they edit with XMetaL.
They have a table model which is based on CALS, but has more possible sub elements.

An example XML file with the XSD file are attached to this issue.

The problem: By default, XMetaL does not display the tgroup content as a table.
When I enhance the local CTM file as suggested in this topic:
http://forums.xmetal.com/index.php?topic=3936.0
 <Tables>
    <CustomTable useFindInsertLocation="true">
      <table>tgroup</table>
      <row>row</row>
      <cell>entry</cell>
    </CustomTable>
  </Tables>


then XMetaL does display the tgroup content as a table; but it does not offer all editing possibilities for tables.
Especially the "Merge Table Cell" functions are not working.

What do I have to do to allow table cell merging?

Note: With earlier versions of XMetaL (9.0 or older), the merge-cell functions worked for the model of our customer, even without customization of the CTM file.
The current product, where merge cell is not working, is:
XMetaL 13 Author Essential
Binary#: 13.0.0.029
Installer#: 13.0.0213
« Last Edit: September 04, 2019, 09:08:25 AM by phe_de » Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: August 20, 2019, 11:09:06 AM »

In the CTM file, after the <Templates> section (as a sibling to that section), add the following:

  <Tables>
    <CALSTable useFindInsertLocation="true">
      <table alias="your nice name here">Table</table>
      <tgroup>tgroup</tgroup>
      <tbody>tbody</tbody>
      <thead>thead</thead>
      <colspec>colspec</colspec>
      <row>row</row>
      <entry>entry</entry>
    </CALSTable>
  </Tables>

If you don't have XMetaL Developer installed you may need to restart XMetaL Author for the CTM file to be reloaded.
Logged
phe_de
Member

Posts: 2


« Reply #2 on: August 21, 2019, 01:56:07 AM »

In the CTM file, after the <Templates> section (as a sibling to that section), add the following:

  <Tables>
    <CALSTable useFindInsertLocation="true">
      <table alias="your nice name here">Table</table>
      <tgroup>tgroup</tgroup>
      <tbody>tbody</tbody>
      <thead>thead</thead>
      <colspec>colspec</colspec>
      <row>row</row>
      <entry>entry</entry>
    </CALSTable>
  </Tables>

If you don't have XMetaL Developer installed you may need to restart XMetaL Author for the CTM file to be reloaded.
Thank you so much! It works!

Is there a CTM syntax reference somewhere? I looked in the XMetaL Author and Developer help, but didn't find one.
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #3 on: August 21, 2019, 01:03:30 PM »

Unfortunately, this feature has not been documented yet.

However, if you look at the CTM files for the DITA authoring functionality (in XMetaL Author Enterprise) I believe most of the possible settings are in there.
Logged
Pages: 1
Print
Jump to:  

email us