[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

Re: Validating CALS tables in FM+SGML 5.5.6



Nasser,
  I'm not sure I understand your question, but the answer may be as simple as 
removing the Cols attribute from your EDD.
  Attributes can be treated in two ways in FrameMaker+SGML. Most of the time
an SGML attribute maps to a FrameMaker+SGML attribute. Sometimes, however,
the information represented in an attribute in SGML corresponds to an inherent
formatting property in FrameMaker+SGML. The number of columns in a table is
a good example. While the SGML view of the table uses an attribute to store
this information, in FrameMaker+SGML, every table has some number of columns.
The number of columns is initially set in the Insert Table dialog and can 
be modified with the Table > Add Rows or Columns command and by deleting existing
columns; it is not determined by an element's attribute. With the read/write
rule you have given, FrameMaker+SGML will automatically interpret the attribute
value as the number of columns on import and will set the attribute value during
export.
	--Lynne


At 12:24 PM 9/7/99 +0200, N. Silakhori wrote: 
>>>>
If I create a new table (using Insert Table dialog box) I define e.g. 5 as initial value for the number of columns. Using Read/Write ruls for CALS table model as recommended in FM+SGML Developer's Guide (Appendix C) I can export and import my documents to and from SGML format without any errors/problems.
  
The Read/Write rule such:
  
element "tgroup"
{ 
......
attribute "cols" is fm property columns;
......
} 
  
initial my "cols" attribute during export/import to 5 (so far so good). The problem is that after creating the table, the required attribute "cols" is not initialised immediately. I skip attribute dialog box during creating tables and this causes afterwards many problems during validating my document. Each time a new table is validated my FM reports: "Element Tgroup, value required for attribute (Cols)".
  
The question is: Is there any way to map Columns field value (Without using FDK) in the Insert Table dialog box to the required Cols attribute in Tgroup element when you crate a table from scratch. For the case FDK should be used, is there any source code (API/DLL's) available on Internet to get rid of this problem.
<<<<



Lynne A. Price
Text Structure Consulting, Inc.
lprice@txstruct.com
http://www.txstruct.com

** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **