Quantcast
Channel: Adobe Community : Popular Discussions - FrameMaker Structured
Viewing all articles
Browse latest Browse all 66580

Cell Rules

$
0
0

I have a CALS format XML table that I cannot get rules to operate as I think they should.  The overall table has rules off, however in some of the rows of the last column I need the cell to be ruled.  If I edit outside of Frame and add the colsep attribute, it appears to be ignored when opened in frame.  Also troubling is that when I save the file as XML, the original colsep attrributes are removed.

 

I have colsep defined in the EDD as a tet attribute on entry, and I have a set of R/W rules that I think should allow the attributes to be processed.  I am including the R/W rules below.

 

Can anyone see what I am doing wrong?

 

Thanks - Jim

 

/* Table Container rule */
element "table" {
   is fm element;

   /* Table subrules */
   attribute "ttabstyle" is fm property table format;
   attribute "frame"
   {
      is fm property table border ruling;
      value "ALL"    is fm property value all;
      value "TOPBOT" is fm property value top and bottom;
      value "TOP"    is fm property value top;
      value "BOTTOM" is fm property value bottom;
      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 "orient" is fm attribute;
   attribute "pgwide" is fm property page wide;
}

/* Table Group rules, Table element is container object */
element "Tgroup" {
   is fm table element;

   /* Attribute rules */
   attribute "cols"           is fm property columns;
   /* attribute "tgroupstyle"  is fm property table format; */
   attribute "colsep"         is fm property column ruling;
   attribute "rowsep"         is fm property row ruling;
   attribute "align"          is fm attribute;
   attribute "charoff"        is fm attribute;
   attribute "char"           is fm attribute;
}

/* ColSpec handling */
element "colspec" {
   is fm colspec;
   attribute "colnum"   is fm property column number;
   attribute "colname"  is fm property column name;
   attribute "align"    is fm property cell alignment type;
   attribute "charoff"  is fm property cell alignment offset;
   attribute "char"     is fm property cell alignment character;
   attribute "colwidth" is fm property column width;
   attribute "colsep"   is fm property column ruling;
   attribute "rowsep"   is fm property row ruling;
}

/* SpanSpec handling */
element "spanspec" {
   is fm spanspec;
   attribute "spanname"  is fm property span name;
   attribute "namest"    is fm property start column name;
   attribute "nameend"   is fm property end column name;
   attribute "align"     is fm property cell alignment type;
   attribute "charoff"   is fm property cell alignment offset;
   attribute "char"      is fm property cell alignment character;
   attribute "colsep"    is fm property column ruling;
   attribute "rowsep"    is fm property row ruling;
}

/* Table Head rules */
element "thead" {
   is fm table heading element;
   attribute "valign" is fm attribute;
}

/* Table Foot rules */
element "tfoot" {
   is fm table footing element;
   attribute "valign" is fm attribute;
}

/* Table Body rules */
element "tbody" {
   is fm table body element;
   attribute "valign" is fm attribute;
}

/* Row rules */
element "row" {
   is fm table row element;
   attribute "valign" is fm attribute;
   attribute "rowsep" is fm property row ruling;
}

/* Entry rules */
element "entry" {
   is fm table cell element;
   attribute "colname" is fm property column name;
   attribute "namest" is fm property start column name;
   attribute "nameend" is fm property end column name;
   attribute "spanname" is fm property span name;
   attribute "morerows" is fm property more rows;
   attribute "colsep" is fm property column ruling;
   attribute "rowsep" is fm property row ruling;
   attribute "rotate" is fm property rotate;
   attribute "valign" is fm attribute;
   attribute "align" is fm attribute;
   attribute "charoff" is fm attribute;
   attribute "char" is fm attribute;
   /*attribute "align"    is fm property cell alignment type;
   attribute "charoff"  is fm property cell alignment offset;
   attribute "char"     is fm property cell alignment character;*/
}


Viewing all articles
Browse latest Browse all 66580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>