Skip to main content
Participant
August 23, 2013
Question

Why is my rules.txt file invalid?

  • August 23, 2013
  • 2 replies
  • 872 views

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;

 

}

This topic has been closed for replies.

2 replies

Inspiring
August 28, 2013

This may sound stupid, but are you actually using FM11?

Legend
August 26, 2013

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

Legend
August 26, 2013

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.