Copy link to clipboard
Copied
I get an error that says A Valid Read/Write rules file must begin with "fm version is" rule.
Rules File Contents:
fm version is "11.0";
/*
* Include all ISO entity mapping rules.
*/
#include "isoall.rw"
element "Graphic"
{
is fm graphic element;
attribute "Fileref" is fm property file;
attribute "dpi" is fm property dpi;
attribute "width" is fm property width;
attribute "height" is fm property height;
fm property import by reference or copy value is "ref";
attribute "scaled_width" drop;
attribute "scaled_height" drop;
writer anchored frame export to file "$(entity).gif" as "GIF";
}
element "Table"
{
is fm table element;
attribute "Columns" is fm property Columns;
attribute "Frame"
{
is fm property table border ruling;
value "All" is fm property value all;
value "N" is fm property value none;
}
}
element "THead" is fm table heading element;
element "TBody" is fm table body element;
element "TRow" is fm table row element;
element "TCell"
{
is fm table cell element;
attribute "Colspan" is fm property horizontal straddle;
attribute "Rowspan" is fm property vertical straddle;
attribute "ColumnName" is fm property column name;
}
element "colspec"
{
is fm colspec;
attribute "ColumnName" is fm property column name;
attribute "ColumnWidth" is fm property column width;
}
element "spanspec"
{
is fm spanspec;
attribute "ColumnName" is fm property column name;
}
element "FigNumXRef"
{
is fm cross-reference element;
attribute "id" is fm property cross-reference id;
attribute "format" is fm property cross-reference format;
}
element "TOCXRef"
{
is fm cross-reference element;
attribute "id" is fm property cross-reference id;
attribute "format" is fm property cross-reference format;
}
element "SeeHeadPageXRef"
{
is fm cross-reference element;
attribute "id" is fm property cross-reference id;
attribute "format" is fm property cross-reference format;
}
Copy link to clipboard
Copied
JohnLBob,
Good question. When I attempt to validate these rules using the default application (ie, <No Application>), I get no errors. Did you try that, to at least make sure that it is a problem specific to your structured application? I'm talking about the StructureTools > Check Read/Write Rules function.
Russ
Copy link to clipboard
Copied
In addition to that, if you are getting this error when you attempt to import or export XML, maybe you need to double-check the path in your structapps file. Might not be pointing to the file you think.
Copy link to clipboard
Copied
This may sound stupid, but are you actually using FM11?