Skip to main content
Known Participant
April 10, 2024
Answered

Table style when importing XML

  • April 10, 2024
  • 1 reply
  • 1010 views

When I import the XML, the columns and rows are mixing in a single-column table, how do I solve this? I'm attaching how it should be and how it's looking.

 

 

 

This topic has been closed for replies.
Correct answer Matt-Tech Comm Tools

But I need to add this attribute in EDD too, right? 


No, the XML attribute is processed into an fm property when opened by fm. Then the fm property is processed into an attribute again when saving to XML.

Do you have the width value set in the XML?

If not, set a value for the property in the rule as well.

1 reply

frameexpert
Braniac
April 10, 2024

Can you post the XML of that table? Thanks.

Known Participant
April 10, 2024

Hey, here it is: 

 

Known Participant
April 10, 2024

Thanks for the screenshot. It would be easier if you copied/pasted the XML into a post.

 

Your structured application should refer to a set of Read Write Rules that determine which elements get converted to certain table parts in FrameMaker. Do you have a Read Write Rules file referred to in your structured application?


I have this one, but I don't know how exactly to do it.  Please tell me if this is wrong: 



fm version is "15.0";

/*
* Include all ISO entity mapping rules.
*/

element "xref" {
is fm cross reference element "Xref";
attribute "formatprop" is fm property cross-reference format;
}
element "table" {
is fm table element "Table";
attribute "frame"
{
is fm property table border ruling;
value "top" is fm property value top;
value "bottom" is fm property value bottom;
value "topbot" is fm property value top and bottom;
value "all" is fm property value all;
value "sides" is fm property value sides;
value "none" is fm property value none;
}
attribute "colsep" is fm property column ruling;
attribute "rowsep" is fm property row ruling;
attribute "numcols" is fm property columns;
attribute "colwidths" is fm property column widths;
}
element "tablehead" {
is fm table heading element "TableHead";
}
element "tablebody" {
is fm table body element "TableBody";
}
element "row" {
is fm table row element "Row";
}
element "cell" {
is fm table cell element "Cell";
}
element "graphic" {
is fm graphic element "Graphic";
writer anchored frame {
notation is "CGM";
export to file "$(docname).cgm";
}}

fm version is "15.0";

/*
* Include all ISO entity mapping rules.
*/

element "xref" {
is fm cross reference element "Xref";
attribute "formatprop" is fm property cross-reference format;
}
element "table" {
is fm table element "Table";
attribute "frame"
{
is fm property table border ruling;
value "top" is fm property value top;
value "bottom" is fm property value bottom;
value "topbot" is fm property value top and bottom;
value "all" is fm property value all;
value "sides" is fm property value sides;
value "none" is fm property value none;
}
attribute "colsep" is fm property column ruling;
attribute "rowsep" is fm property row ruling;
attribute "numcols" is fm property columns;
attribute "colwidths" is fm property column widths;
}
element "tablehead" {
is fm table heading element "TableHead";
}
element "tablebody" {
is fm table body element "TableBody";
}
element "row" {
is fm table row element "Row";
}
element "cell" {
is fm table cell element "Cell";
}
element "graphic" {
is fm graphic element "Graphic";
writer anchored frame {
notation is "CGM";
export to file "$(docname).cgm";
}}