Discussion:
Structured XML 'title' element
(too old to reply)
cuc tu
2018-10-15 16:02:37 UTC
Permalink
Hi All,


I'm having a snag with a title element and wonder where I should look or search for to id the issue.


When opening the XML data, the title element is removed and the title text is left in the parent element, which is not valid. Frame reports the error "Cannot create the Framemaker table title (title) at this point. The title must be in a table."


For example, the element is structured thusly:


<first_aid>
<title>FIRST AID DATA</title>
<para>For information on first aid, refer to FM 4-25.11.</para>
</first_aid>



Frame will remove the title element:


<first_aid>
FIRST AID DATA
<para>For information on first aid, refer to FM 4-25.11.</para>
</first_aid>



These are the element defs in the EDD:



Element (Container): first_aid
General rule: (title, (figure | figure-alt | table | table-alt | lubetab)*, (((note*, para)+, (para0 | para0-alt+)*) | (para0 | para0-alt+)+))
Attribute list
Name: inschlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: delchlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: comment String Optional
Name: changeref ID References Optional
Name: id Unique ID Optional
Name: idref ID References Optional
Name: assocfig ID References Optional
Name: skilltrk String Optional
Name: security Choice Optional
Choices: uc | fouo | c | s | ts




Element (Container): title
General rule: (<TEXT> | emphasis | subscrpt | supscrpt | xref | extref | link | help.info | indxref | term | term.def | callout | ftnote | ftnref | graphic | ctrlind | ctrlind-val | dodac | lubricant | symbol | torque | voltage | null | change | brk)*
Attribute list
Name: inschlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: delchlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: comment String Optional
Name: changeref ID References Optional
Name: id Unique ID Optional
Name: idref ID References Optional
Name: assocfig ID References Optional
Name: skilltrk String Optional
Name: security Choice Optional
Choices: uc | fouo | c | s | ts


Element (Container): para
General rule: (<TEXT> | emphasis | subscrpt | supscrpt | xref | extref | link | help.info | indxref | term | term.def | callout | ftnote | ftnref | graphic | ctrlind | ctrlind-val | dodac | lubricant | symbol | torque | voltage | null | change | internet | proponent | phone | seqlist | randlist | deflist | figure | figure-alt | inlinegraphic | table | table-alt | verbatim | interaction | statemanipulation | statemanipulation-alt)*
Attribute list
Name: hcp Choice Optional
Choices: yes | no
Default: no
Name: esd Choice Optional
Choices: yes | no
Default: no
Name: inschlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: delchlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: comment String Optional
Name: changeref ID References Optional
Name: id Unique ID Optional
Name: idref ID References Optional
Name: assocfig ID References Optional
Name: skilltrk String Optional
Name: security Choice Optional
Choices: uc | fouo | c | s | ts

Thanks for any advice or tips.


C2
_______________________________________________

This message is from the Framers mailing list

Send messages to ***@lists.frameusers.com
Visit the list's homepage at http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to ***@frameusers.com
Rick Quatro
2018-10-15 17:17:14 UTC
Permalink
Hi C2,

Is the <first_aid> element being converted to a FrameMaker table?

Rick

Rick Quatro
Carmen Publishing Inc.
***@frameexpert.com
585-729-6746 NEW!



-----Original Message-----
From: Framers <framers-bounces+rick=***@lists.frameusers.com> On
Behalf Of cuc tu
Sent: Monday, October 15, 2018 12:03 PM
To: ***@lists.frameusers.com
Subject: [Framers] Structured XML 'title' element

Hi All,


I'm having a snag with a title element and wonder where I should look or
search for to id the issue.


When opening the XML data, the title element is removed and the title text
is left in the parent element, which is not valid. Frame reports the error
"Cannot create the Framemaker table title (title) at this point. The title
must be in a table."


For example, the element is structured thusly:


<first_aid>
<title>FIRST AID DATA</title>
<para>For information on first aid, refer to FM 4-25.11.</para>
</first_aid>



Frame will remove the title element:


<first_aid>
FIRST AID DATA
<para>For information on first aid, refer to FM 4-25.11.</para>
</first_aid>



These are the element defs in the EDD:



Element (Container): first_aid
General rule: (title, (figure | figure-alt | table | table-alt | lubetab)*,
(((note*, para)+, (para0 | para0-alt+)*) | (para0 | para0-alt+)+)) Attribute
list
Name: inschlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: delchlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: comment String Optional
Name: changeref ID References Optional
Name: id Unique ID Optional
Name: idref ID References Optional
Name: assocfig ID References Optional
Name: skilltrk String Optional
Name: security Choice Optional
Choices: uc | fouo | c | s | ts




Element (Container): title
General rule: (<TEXT> | emphasis | subscrpt | supscrpt | xref | extref |
link | help.info | indxref | term | term.def | callout | ftnote | ftnref |
graphic | ctrlind | ctrlind-val | dodac | lubricant | symbol | torque |
voltage | null | change | brk)* Attribute list
Name: inschlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: delchlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: comment String Optional
Name: changeref ID References Optional
Name: id Unique ID Optional
Name: idref ID References Optional
Name: assocfig ID References Optional
Name: skilltrk String Optional
Name: security Choice Optional
Choices: uc | fouo | c | s | ts


Element (Container): para
General rule: (<TEXT> | emphasis | subscrpt | supscrpt | xref | extref |
link | help.info | indxref | term | term.def | callout | ftnote | ftnref |
graphic | ctrlind | ctrlind-val | dodac | lubricant | symbol | torque |
voltage | null | change | internet | proponent | phone | seqlist | randlist
| deflist | figure | figure-alt | inlinegraphic | table | table-alt |
verbatim | interaction | statemanipulation | statemanipulation-alt)*
Attribute list
Name: hcp Choice Optional
Choices: yes | no
Default: no
Name: esd Choice Optional
Choices: yes | no
Default: no
Name: inschlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: delchlvl Choice Optional
Choices: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10
Default: 0
Name: comment String Optional
Name: changeref ID References Optional
Name: id Unique ID Optional
Name: idref ID References Optional
Name: assocfig ID References Optional
Name: skilltrk String Optional
Name: security Choice Optional
Choices: uc | fouo | c | s | ts

Thanks for any advice or tips.


C2
_______________________________________________

This message is from the Framers mailing list

Send messages to ***@lists.frameusers.com Visit the list's homepage at
http://www.frameusers.com Archives located at
http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to ***@frameusers.com

_______________________________________________

This message is from the Framers mailing list

Send messages to ***@lists.frameusers.com
Visit the list's homepage at http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to ***@frameusers.com
cuc tu
2018-10-15 21:02:59 UTC
Permalink
Hi Rick,


I suspect a table is involved because of the error message, but all I notice in the XML and structure view is that the 'title' element tags are removed, and its text is then in the 'first_aid' element, which is not valid. In Frame, I can select this title text and then wrap it in the 'title' element, and that will validate. Frame will save the xml file with the 'title' element intact, but when the xml is then reopened, the title element is removed again.


Related to your question, actual 'table' elements are converted to 'Table' elements and then 'Row' elements are inserted. Those elements are undefined and appear elsewhere. The above just seemed to be an easier issue to get through as there are still several...


I'm fairly certain I have valid xml for the dtd, I just have problems with my structured application and am not sure where to look. I built the edd from a supplied dtd and imported the elements into a template file, but I do not map any formatting in the edd (it was simply built from the dtd). Then the rw rules are just from Adobe's structured app reference manual.


I think there is something making Frame expect the 'title' element in a table and there is a connection to Frame's Table Title, but I don't see where that is defined. I suspect something is missing from my rw-rules file, which looks as such:



fm version is "12.0";
/*
* Include all ISO entity mapping rules.
*/
#include "isoall.rw"


element "xref" {
is fm cross reference element "Xref";
attribute "formatprop" is fm property cross-reference format;
}


element "table" {
is fm table element "Table";
attribute "frame"
{
is fm property table border ruling;
value "top" is fm property value top;
value "bottom" is fm property value bottom;
value "topbot" is fm property value top and bottom;
value "all" is fm property value all;
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 "numcols" is fm property columns;
attribute "colwidths" is fm property column widths;
}


element "tablehead" {
is fm table heading element "TableHead";
}
element "tablebody" {
is fm table body element "TableBody";
}
element "row" {
is fm table row element "Row";
}
element "cell" {
is fm table cell element "Cell";
}

element "graphic" {
is fm graphic element "Graphic";
writer anchored frame {
notation is "CGM";
export to file "$(docname).cgm";
}
}




Thanks,

C2

---------------------



Hi C2,

Is the <first_aid> element being converted to a FrameMaker table?

Rick

Rick Quatro
Carmen Publishing Inc.
***@frameexpert.com
585-729-6746 NEW!

_______________________________________________

This message is from the Framers mailing list

Send messages to ***@lists.frameusers.com
Visit the list's homepage at http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to ***@frameusers.com

Continue reading on narkive:
Loading...