Copy link to clipboard
Copied
Let me explain the situation in case there are multiple solutions. I have a Framemaker setup that is inherited. We use FM to write docs that we filter with conditional attributes. Everything is fine there except for the "black box" nature of the thing... which leads up to now.
We are receiving documents that need to get integrated with our current system. This documentation lives on a website. We tried importing HTML, and now we are looking at importing it as XML. The closest we've gotten to being able to make this work is by using the Book structure that is within the Framemaker installation files (Program Files\Adobe\Framemaker9\Structure\xml\Book\app_xml). I should mention that I'm not exactly sure how the guy on the other end is creating the XML file. I'm just trying to get what he gives me working in FM.
So the latest thing is opening successfully, but has **completely different elements and style than our docs**. I've tried importing our EDD, but quite a few things break. I've been studying EDDs and Template files to try to troubleshoot this, but I have only gotten so far. I realized this morning that the XML file I'm being given is pointing to the Book.DTD... so I started looking at that.
I don't have the slightest of how to generate a DTD or get my docs to use a different one.
1. is there a way to automate a conversion from one EDD to another? otherwise I have to go through and change elements by hand. this will work but is incredbily time consuming and we are expecting a large volume of documents.
2. how does the DTD figure in with this? I opened it in a text editor and it seems to have the same stuff as the EDD in a different format.
Any ideas are appreciated.
Copy link to clipboard
Copied
UIspecs,
It seems you tried very hard up to this point, but unfortunately you seem to have got some concepts wrong. My first suggestion would be to invite a FrameMaker pro for a workshop, clearing up the misconceptions and paving the way to a solid solution.
Please remember: XML is just a way of coding structured information, it does not specify this structure. There is no guarantee that one XML file is compatible with another XML file.
Assuming your own material is all fine, then importing material based on a different structure usually involves changing that foreign structure into your structure. The technology for this is XSLT and FrameMaker comes with a feature that allows XSLT preprocessing when opening an XML file.
But try to get a deeper understanding of what happens behind the scenes.
- Michael
Copy link to clipboard
Copied
I echo Michael's response.
You seem to have an established EDD for your documents. The EDD, in a sense, contains the DTD and the formatting of your documents. There is probably other formatting contained in your templates (paragraph styles, etc). So, I assume you want this EDD and formatting to be the EDD and formatting for all your documents.
Given that, then the best way to get documents that have a different structure (that is, a different EDD and/or DTD) is to create an XSLT file that transforms the different structure into YOUR structure. Then all your documents have the same structure and formatting. Note that it is of little importance what the formatting of the "foreign" documents is; the important point is its structure. You said you opened the foreign XML file and its structure is different from yours. So, you will need to ascertain what the structure is and how you want it to translate into your structure. An XSLT file is the thing you need to do this. Once created, it will automate the opening of the many foreign files you will be getting. It may take sometime to create, but it does its job very quickly. Of course, it is hoped that all these files coming in use the same structure; if each one is different, you will have to create an XSLT file for each kind of structure.
The alternative to creating an XSLT is to create a new EDD that mirrors the foreign structure but applies the formatting that you want. This is much more difficult than creating an XSLT file. Moreove, you end up with two different EDDs to maintain.
XSLT is easy to learn; I have done it. Go to your local bookstore and get a good book on XSLT, but be sure to limit your reading to version 1 of XSL, because that is what FrameMaker understands.
Good luck,
Van
Copy link to clipboard
Copied
I had been trying the alternative you mention of creating a new EDD... yes, very tough lol. I'm glad to hear XSLT will be easier. The analysis I've already done will probably play right into the XSLT conversion. Thanks.
Copy link to clipboard
Copied
1. is there a way to automate a conversion from one EDD to another?� otherwise I have to go through and change elements by hand.� this will work but is incredbily time consuming and we are expecting a large volume of documents.a. Perform action one. Response one will happen.
2. how does the DTD figure in with this?� I opened it in a text editor and it seems to have the same stuff as the EDD in a different format.
Copy link to clipboard
Copied
Lynne,
Thanks for answering my DTD question. I'm going to try generating a DTD from my EDD to send my counterpart. Perhaps he can structure the XML files he is sending appropriately with that file and save me all the trouble!!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more