Article View: adobe.framemaker.sgml
Article #1512Re: Problems in FM to XML conversion
From: PamelaOwens
Date: Thu, 29 Jun 2006 14:57
Date: Thu, 29 Jun 2006 14:57
52 lines
3304 bytes
3304 bytes
continued
===============
In the couple of versions I tried, what resulted from the import of the xml seems to not have read the write rules as it didn't work (for olld application in the structapps.fm). The elements attict, timidno and the others that show up in red are still there instead of being "drop"ped. The "authnot" didn't get renamed to "notice".
I had to go thru the xml file and do a find/replace on the "boardno" and change it to "entityref" to get the graphics to come into FM. I need to figure out how to get the read write rules to do this for me on import and then in reverse to go from the FM back to xml. There were some other attributes for the graphics in the dtd that need converted/mapped/renamed for FM and then in reverse.
I'm trying to convert (cals.dtd) xml file to FrameMaker file (olld.dtd). The 2 dtd's are similar except for a couple of differences..so I was trying to use the read write rules to rename them.
I had found a file that is supposed to help you write the read write rules in frame but I'm not quite sure about some of the syntax. It still just doesn't seem quite right...it had seemed to say that you could put in an attribute without the element but in an example with the online documents, it showed that it should be in more of a subrule...the Frame file said to just the first, but the example said to use the whole part surrounding it ...
==========[frame]================
entity attribute "boardno" is fm attribute "entityref";
===========[book example]==============
element "graphic"
{
is fm graphic element "graphic";
entity attribute "boardno" is fm attribute "entityref";
}
==================[another book example]============
element "graphic"
{
is fm graphic element "graphic";
attribute "graphatt"
{
is fm property entity;
is fm attribute;
}
====================================================
here's what I'm thinking it should look like, but not sure of what all of them should be and I'm not sure which example above to follow...can someone please help??
attribute "graphsty" is fm attribute "graphsty";
attribute "llcordra" drop;
attribute "rucordra" drop;
attribute "reprowid" is fm attribute "reprowid";
attribute "reprodep" is fm attribute "reprodep";
attribute "hscale" drop;
attribute "vscale" drop;
attribute "scalefit" drop;
attribute "hplace" drop;
attribute "vplace" drop;
attribute "coordst" drop;
attribute "coordend" drop;
attribute "rotation" drop;
attribute "%secur" drop;
==============
Here are the original definitions in the dtd:
Technical Details
Message-ID:
<3bc0c056.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!news.glorb.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossingReferences:
<3bc0c056.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: fcc08,60546dfe0e31b708 X-Google-Attributes: gidfcc08,public X-Google-Language: ENGLISH,ASCII-7-bit From: PamelaOwens@adobeforums.com Newsgroups: adobe.framemaker.sgml Subject: Re: Problems in FM to XML conversion Message-ID: <3bc0c056.2@webcrossing.la2eafNXanI> Date: Thu, 29 Jun 2006 07:57:08 -0700 References: <3bc0c056.-1@webcrossing.la2eafNXanI> Lines: 115 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!news.glorb.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing