Hi,
I would like export the table title of a structured fm9 document to xml. But the fm table title element is simply dropped on export no matter what I'm doing to the dtd or rw rules. All other table elements export as expected. I am thinking it has to do with the fact that the table title in my template is a child of the tgoup element and not of the table container element, but I am not sure. Any ideas on how to solve this would be much appreciated!
here is the EDD (and I am stuck with that):
Element (Container): Table
General rule: Tgroup+, Table note section?
Attribute list ...
Element (Table Title): Table title
General rule: Caption, Description?
Attribute list ...
Element (Table): Tgroup
General rule: Table title?, Thead?, Tbody
Exclusions: Footnote
Attribute list ...
I created a dtd like this:
<!ELEMENT Table | (Table-title?, Tgroup+, Table-note-section?) > |
<!ATTLIST Table | Position (Top|Anywhere|Top-left) "Anywhere" > |
<!ELEMENT Table-title
(Caption, Description?) >
<!ATTLIST Table-title
Xrefprefix CDATA "Table"
Id ID #IMPLIED >
<!ELEMENT Tgroup | (Table-title?, Thead?, Tbody) > | ||
<!ATTLIST Tgroup | Align | (Left|Right|Center|Justify|Char) "Left" | |
Charoff CDATA | #IMPLIED | ||
Char | CDATA | #IMPLIED > |
and the following rules:
element "Table"{
is fm element;
}
element "Tgroup"{
is fm table element;
}
element "Table-title"{
is fm table title element;
}
It doesn't seem to matter what the table title rule is. Is there a simple solution I am overlooking?
Many Thanks!
Message was edited by: KKHoff I found the solution from another post: I renamed the tgroup element to table-group in the rw rules and the dtd. Now the table title is exported correctly as a child of tgroup. I learned that if you use the tgroup element with this name, fm assumes the cals table model and drops the title inside the tgroup element.