Home Forums General XMetaL Discussion Invalid tgroup attributes resulting from Selection.InsertCALSTable() Reply To: Invalid tgroup attributes resulting from Selection.InsertCALSTable()

Derek Read

Reply to: Invalid tgroup attributes resulting from Selection.InsertCALSTable()

My first recommendation would be to try the current release.

If this was a bug in 11.0.0.084 I think it must require a specific setup to reproduce. I am unable to reproduce the issue in 11.0.0.084, 11.0.0.091 and 13.0.0.033 (current release).

Here is my test script:

[code]//XMetaL Script Language JScript:
Selection.InsertCALSTable(2, 2, “table”, true, false);
ActiveDocument.Host.Alert(ActiveDocument.xml);[/code]

This also gives me the expected results:

[code]//XMetaL Script Language JScript:
Selection.InsertCALSTable(2, 2, “table”, true, false);
if (Selection.InContextOfType(“TABLE”)) {
 if (Selection.MoveToElement(“table”,false)) {
   Selection.SelectElement();
   ActiveDocument.Host.Alert(Selection.Text);
 }
}[/code]

As does switching to Plain Text view and viewing the XML source.
Selecting the table, copying it to the clipboard, and pasting that into a text editor also gives me the correct results.

What do you see in Plain Text view?

Presumably in your case XMAX is also giving you validation errors?
If not, does the schema define an @Desc?

I'm trying to figure out which API is causing the problem for you: ActiveDocument.xml or InsertCALSTable.
Ultimately we will need to reproduce this though.

If you can reproduce this issue with 13 please let XMetaL Support know. The issue does not appear to be reproducible with a schema that supports the standard CALS table model, so if it requires a specific DTD or XSD to reproduce the issue please provide the files needed when you submit the support case.

Reply

Products
Downloads
Support