Copy link to clipboard
Copied
hi,
sorry for there are so many questions from me.
I tried to create my XML Application following this PDF. And I have a problem to add the Strcured Application element (the circled step 2),could you please take some time to show me how to do this in detail? please see my attached markup file.
thanks a lot!
Copy link to clipboard
Copied
Hello again,
Before we start, it would be a good idea to keep this discussion in one thread, rather than create a new thread for each message.
First the good news, the table structure is now correct, although you do not allow for a table title.
I'm sorry to say that the rest of the EDD does not look so good. I think perhaps you have misunderstood the intructions in the developer's guide. To answer your specific question, the StructuredApplication element is from the EDD clement catalog so if you look at the top of an EDD's structure view you will typically see these elements:
ElementCatalog
Version
StructuredApplication
Element
Tag
...
You can see that the StructuredApplication element can be inserted after the Version element.
I feel that there is still a great deal for you to understand about XML and FrameMaker's structured application development. One of the first questions to ask is do you already have a DTD or an XML schema that defines the required XML structure, or are you building your own EDD to suit the specific needs of your own documents.
If you do already have a DTD then the development process is slightly different as you will not need to invent your own EDD structures, elements and attributes.
Good luck
Ian
Copy link to clipboard
Copied
yes, I do have an DTD now, but the dtd file is an external one not created from FM, it is suitable to epic editor.
could you please tell me how to use this dtd file to get an edd file in FM?
thanks a lot!
Copy link to clipboard
Copied
Hi
Having an external DTD is very good news. The DTD is part of the core XML specification, so if it works with Epic editor it will work with FrameMaker. One of XML's key features is it's application independence.
Here are some of the steps that you need to follow so that you can use your DTD with FrameMaker. Please refer to the complete instructions that you will find in the Structure Application Developer Guide and Reference manuals.
Create a structured template:
Please understand that the instructions above are not exhaustive. But they should get you onto the correct path. Please read as much of the Structure Application Developer Guide and Reference manuals as you can. It's all in there.
Good luck
Ian
Copy link to clipboard
Copied
Hi, thanks for your helpful answer!
And there is another qustion: What should be the file format of the read/write rule? and what is the suffix to this file? I stored this file with a *.fm suffix, is it right or not? Is ther any reference documents?
Thank you very much!
Copy link to clipboard
Copied
hi,
Thank you very much for all of your help all the time.
and is there any one who can tell me how to add path of the graphics when writing the rules? and Including how to add figure box by adding the rules.
Thanks again for all your help to a novice like me.
Copy link to clipboard
Copied
With no errors I have created:
MAINT_TEMPLATES_EDD so I have an "element catalog"
MAINT_TEMPLATES.dtd so I have the formatting part of the equation
I created a new doc Using the Blank Paper PORTRAIT
and inserted each of the ELEMENTS that were created in the "element catalog"
I saved this file as MaintTask.fm
good so far, no errors.
Now comes the step to "Create a DTD from an EDD"
It says to Open the EDD. I did.
It says to "Add the StructuredApplication Element" and type in the name of the XML application created in the previous section.
I had created "MaintTask.fm" in the previous section. [Ref Pg 699 in the "Using Adobe FrameMaker (2017 release)]
But it doesn't allow me to add the Element "StructuredApplication"
much less Save it as a DTD file.
Please advise
Copy link to clipboard
Copied
I did open the MAINT_TEMPLATES_EDD.fm file
now I can't open the file at all
rhonda
Copy link to clipboard
Copied
Hi,
The StructuredApplication element can be added as the second child of the EDD root element (ElementCatalog), right after Version. I believe that this specifies the default application to use when you save a document as XML; however, it is not required for XML import/export.
I am not familiar with this document you are following, but I should mention that this is clearly just an introduction only. Once you get the basic skills down, you will likely want to increase the complexity of your workflow to suit your needs. In other words, do not assume that this is the only way to do it.
Also, those two CrossReference elements in the EDD have no usefulness. It appears that you may have followed some steps in the tutorial incorrectly. Otherwise, the EDD should probably be functional, although you won't be able to insert very much into your document except a table with some text and graphics. You won't be able to insert any paragraphs, headings, etc.
One more thing... although FrameMaker will probably accept it, the highest-level element "123" is not valid in XML. So, you should get a parser error when you save as XML, even if everything else is correct. If I remember correctly, XML element names can contain numerical digits but cannot start with one.
Russ