Copy link to clipboard
Copied
On saving my document as xml the table titles are not carried into the xml the file. Tbale head nd body elemets are created in xml but the table title element is created at all.
Any ideas what I have done wrong would be much appreciated.
DTD:
<!ELEMENT Table (Tgroup) >
<!ATTLIST Table Position (Anywhere|TopOfPage) "Anywhere"
Orientation (Portrait|Rotated) "Portrait" >
<!--Tgroup: Tgroup. Group of elements that go together to form a table.-->
<!ELEMENT Tgroup (colspec*, spanspec*, Ttitle?, Thead?, Tbody, Tfoot?) >
<!ATTLIST Tgroup ID ID #IMPLIED
colsep NMTOKEN #IMPLIED
cols NMTOKEN #REQUIRED
colwidth CDATA #IMPLIED
rowsep NMTOKEN #IMPLIED
tabstyle CDATA #IMPLIED
>
<!ELEMENT colspec EMPTY>
<!ATTLIST colspec
align (left|center|right|justify|char) #IMPLIED
char CDATA #IMPLIED
charoff NMTOKEN #IMPLIED
colname NMTOKEN #IMPLIED
colnum NMTOKEN #IMPLIED
colsep NMTOKEN #IMPLIED
colwidth CDATA #IMPLIED
rowsep NMTOKEN #IMPLIED
>
<!ELEMENT spanspec EMPTY>
<!ATTLIST spanspec
align (left|center|right|justify|char) #IMPLIED
char CDATA #IMPLIED
charoff NMTOKEN #IMPLIED
colsep NMTOKEN #IMPLIED
nameend NMTOKEN #REQUIRED
namest NMTOKEN #REQUIRED
rowsep NMTOKEN #IMPLIED
spanname NMTOKEN #REQUIRED
>
<!--Ttitle: TabelTitle. Table title text.-->
<!ELEMENT Ttitle (#PCDATA | Footnote | Tcont | IndexMarker)* >
<!--Thead: Thead. Heading table row.-->
<!ELEMENT Thead (colspec*, Tr+) >
<!--Tbody: Tbody. Tbale body composed of rows.-->
<!ELEMENT Tbody (colspec*, Tr+) >
<!--Tfoot: Tfoot. Tabel footer row.-->
<!ELEMENT Tfoot (colspec*, Tr+) >
<!--Tr: Tr. Table row composed of table cells-->
<!ELEMENT Tr (Td+) >
<!--Td: Td. Table cell containing text.-->
<!ELEMENT Td (#PCDATA | Para | Footnote | XRef | Part |
PartNumber | PartDescription | Graphic |
IndexMarker)* >
<!ATTLIST Td VertAlign (Top|Middle|Bottom) "Top"
HozAlign (Left|Centre|Right) "Left" >
<!--Tcont: Tcont. Table continuation.-->
<!ELEMENT Tcont EMPTY >
EDD:
Element (Container): Table
General rule: Tgroup
Attribute list
Name: Position Choice Optional
Choices: Anywhere, TopOfPage
Default: Anywhere
Name: Orientation Choice Optional
Choices: Portrait, Rotated
Default: Portrait
Automatic insertions
Automatically insert child: Tgroup
Text format rules
In all contexts.
Use paragraph format: Table
If context is: [Position = “TopOfPage”]
Pagination properties
Start position: Top of page
Tgroup. Group of elements that go together to form a table.
Element (Table): Tgroup
General rule: Ttitle?, Thead?, Tbody, Tfoot?
Attribute list
Name: ID Unique ID Optional
Control flags: Read-only
Initial table format
If context is: Table < RevDetails
Table format: RevisionDetails
Ttitle. Table title text.
Element (Table Title): Ttitle
General rule: (<TEXT> | Footnote | Tcont | IndexMarker)*
Text format rules
In all contexts.
Use paragraph format: TableTitle
Thead. Heading table row.
Element (Table Heading): Thead
General rule: Tr+
Tbody. Tbale body composed of rows.
Element (Table Body): Tbody
General rule: Tr+
Tfoot. Tabel footer row.
Element (Table Footing): Tfoot
General rule: Tr+
Tr. Table row composed of table cells
Element (Table Row): Tr
General rule: Td+
Td. Table cell containing text.
Element (Table Cell): Td
General rule: (<TEXT> | Para | Footnote | XRef | Part | PartNumber | PartDescription | Graphic | IndexMarker)*
Attribute list
Name: VertAlign Choice Optional
Choices: Top,Middle,Bottom
Default: Top
Name: HozAlign Choice Optional
Choices: Left,Centre,Right
Default: Left
Text format rules
If context is: Tr < Thead
Use paragraph format: CellHeading
Else
Use paragraph format: CellBody
If context is: [VertAlign = “Top”]
Table cell properties
Vertical alignment: Top
Else, if context is: [VertAlign = “Middle”]
Table cell properties
Vertical alignment: Middle
Else, if context is: [VertAlign = “Bottom”]
Table cell properties
Vertical alignment: Bottom
If context is: [HozAlign = “Left”]
Basic properties
Alignment: Left
Else, if context is: [HozAlign = “Centre”]
Basic properties
Alignment: Center
Else, if context is: [HozAlign = “Right”]
Basic properties
Alignment: Right
Tcont. Table continuation.
Element (System Variable): Tcont
System variable format rule
In all contexts.
Use system variable: Table Continuation
Copy link to clipboard
Copied
Edd,
The EDD has no influence on the translation between FrameMaker and XML, it is the Read/Write rules that matter.
You would need a line similar to this to translate the FrameMaker table title to XML and vice versa:
element “Ttitle” is fm table title element;
- Michael
Copy link to clipboard
Copied
Michael
Thanks very much your input. I have tried inputting a read write rule but it is still now working. If you have any more ideas I would love to hear them.
Thanks very much
Eddie
Copy link to clipboard
Copied
Sam,
Do your read/write rules include ALL the rules for tables? As in:
element "Table" is fm table element;
element "TableTitle" is fm table title element;
element "TableHeading" is fm table heading element;
element "TableFooting" is fm table footing element;
element "TableBody" is fm table body element;
element "Row" is fm table row element;
element "Cell" is fm table cell element;
Substitute YOUR element names for those within the quotation marks.
Van
Copy link to clipboard
Copied
Van
I have now input all the RW rules for tables but still I am having the same problem.
Thanks
Eddie
Copy link to clipboard
Copied
Eddie,
I do not use tgroups, but the Structure Applications Guide has for an EDD that uses the CALS model for tables:
Element(Container): Table
General rule: Title?, Tgroup+
Element(Table): Tgroup
General rule: Thead?, Tbody, Tfoot?
In other words, you have the Title element inside the Tgroup element; it should be inside the Table element at the same level as the Tgroup level.
Read the Structure Applications Guide, because there is more information on CALS tables.
Van
Copy link to clipboard
Copied
Eddie,
I came across the same problem in a current project, and Lynne Price of txstruct.com found out: If the table element is named "tgroup" (any capitalization) FrameMaker ALWAYS assumes a CALS table format which has the table title separate and NEVER exports the native table title. Your options are:
HTH,
- Michael (with a million thanks to Lynne)
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more