Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Why is my rules.txt file invalid?

New Here ,
Aug 23, 2013 Aug 23, 2013

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;

 

}

TOPICS
Structured

Views

817
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Aug 26, 2013 Aug 26, 2013

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Aug 26, 2013 Aug 26, 2013

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 27, 2013 Aug 27, 2013

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines