[Framers] Structured XML 'title' element

2018-10-15 Thread cuc tu
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 DATA
 For information on first aid, refer to FM 4-25.11.




Frame will remove the title element:


 
 FIRST AID DATA
 For information on first aid, refer to FM 4-25.11.




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: ( | 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: ( | 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 framers@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 listad...@frameusers.com


Re: [Framers] Structured XML 'title' element

2018-10-15 Thread Rick Quatro
Hi C2,

Is the  element being converted to a FrameMaker table?

Rick

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



-Original Message-
From: Framers  On
Behalf Of cuc tu
Sent: Monday, October 15, 2018 12:03 PM
To: framers@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 DATA
 For information on first aid, refer to FM 4-25.11.




Frame will remove the title element:


 
 FIRST AID DATA
 For information on first aid, refer to FM 4-25.11.




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: ( | 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: ( | 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 framers@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 listad...@frameusers.com

___

This message is from the Framers mailing list

Send messages to framers@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 listad...@frameusers.com


Re: [Framers] Structured XML 'title' element

2018-10-15 Thread cuc tu
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  element being converted to a FrameMaker table?

Rick

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

___

This message is from the Framers mailing list

Send messages to framers@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 listad...@frameusers.com


Re: [Framers] Structured XML 'title' element (cuc tu)

2018-10-18 Thread cuc tu
Hi All,


Had a nice chat with Rick the other day and he helped me understand quite a bit 
more about the structure and some navigation...

We identified that the read-write rules are involved as removing that from the 
structured application definition stops the problem I was seeing. We were not 
sure exactly why it was happening though since the RW file does not declare 
anything about a 'title' element.


I think I have enough to do what I need to do at the moment.


Thanks all, and especially Rick!

C2

--

Message: 1
Date: Mon, 15 Oct 2018 21:02:59 +
From: cuc tu 

Hi Rick,


I suspect a table is involved because of the error message...

-



Hi C2,

Is the  element being converted to a FrameMaker table?

Rick

Rick Quatro
Carmen Publishing Inc.
r...@frameexpert.com
585-729-6746[cid:ce32eb98-daaa-4b08-8e8d-8de70f516dad] NEW!



-- next part --
A non-text attachment was scrubbed...
Name: Outlook-idslznnv.png
Type: image/png
Size: 773 bytes
Desc: Outlook-idslznnv.png
URL: 

___

This message is from the Framers mailing list

Send messages to framers@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 listad...@frameusers.com